/* Improve application readability without changing the mobile layout. */
/* Long article titles need room below the fixed header for the back link. */
#root section:has(> .hero-text-shadow > a[href="/blog"]) {
  height: auto;
  min-height: max(350px, 50vh);
  padding-top: calc(var(--ifcs-header-offset, 128px) + 24px);
}

body #root #ifcs-application-code-feedback:not([hidden]) {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff4d6 !important;
  border-left: 4px solid #956600;
  color: #533800 !important;
  font-size: 14px !important;
  line-height: 1.5;
}
body #root #ifcs-application-code-feedback.text-destructive:not([hidden]) {
  background: #fff0f0 !important;
  border-left-color: #b42318;
  color: #8b1c13 !important;
}
#ifcs-certificate-option .ifcs-certificate-price {
  color: #10213d;
  font-weight: 700;
}

body #root #ifcs-certificate-option > a.ifcs-certificate-sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  max-width: 100%;
  margin: 20px 0 0;
  padding: 12px 24px;
  border: 2px solid #1769d2;
  border-radius: 6px;
  background: #1769d2;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

body #root #ifcs-certificate-option > a.ifcs-certificate-sample:hover {
  background: #1254a8;
  border-color: #1254a8;
}

body #root #ifcs-certificate-option > a.ifcs-certificate-sample:focus-visible {
  outline: 3px solid #10213d;
  outline-offset: 4px;
}

body:has([data-current-step]) {
  background: #f3f7fc;
  color: #101828;
}

.ifcs-delivery-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* React renders delivery detail fields after the option buttons. Reorder the
   visible flow so every field stays directly beneath the option it belongs to. */
[data-current-step] .space-y-2:has(> input[placeholder*="admissions"]),
[data-current-step] .space-y-2:has(input[placeholder*="admissions"]) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

[data-current-step] .space-y-2:has(input[placeholder*="admissions"]) > button:nth-of-type(1) { order: 10; }
[data-current-step] .space-y-2:has(input[placeholder*="admissions"]) > button:nth-of-type(2) { order: 20; }
[data-current-step] .space-y-2:has(input[placeholder*="admissions"]) > div:has(input[placeholder*="admissions"]) { order: 21; }
[data-current-step] .space-y-2:has(input[placeholder*="admissions"]) > button[data-add-recipient-prompt="email"],
[data-current-step] .space-y-2:has(input[placeholder*="admissions"]) > button:nth-of-type(n+6) { order: 22; }
[data-current-step] .space-y-2:has(input[placeholder*="admissions"]) > p:has(.text-accent) { order: 23; }
[data-current-step] .space-y-2:has(input[placeholder*="admissions"]) > button:nth-of-type(3) { order: 30; }
[data-current-step] .space-y-2:has(input[placeholder*="admissions"]) > button:nth-of-type(4) { order: 40; }
[data-current-step] .space-y-2:has(input[placeholder*="admissions"]) > button:nth-of-type(5) { order: 50; }

[data-current-step] .space-y-3:has(> .space-y-2 > button):has(input[placeholder*="admissions"]) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > p:first-child { order: 1; }
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > .space-y-2 { display: contents; }
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > .space-y-2 > button:nth-of-type(1) { order: 10; }
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > .space-y-2 > button:nth-of-type(2) { order: 20; }
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > div:has(input[placeholder*="admissions"]) { order: 21; }
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > button { order: 22; }
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > p:not(:first-child) { order: 23; }
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > .space-y-2 > button:nth-of-type(3) { order: 30; }
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > .space-y-2 > button:nth-of-type(4) { order: 40; }
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > .space-y-2 > button:nth-of-type(5) { order: 50; }

[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > p:first-child {
  font-size: 14px !important;
  font-weight: 800 !important;
}

[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > .space-y-2 > button {
  min-height: 60px;
}

[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > .space-y-2 > button span {
  font-size: 16px !important;
  line-height: 1.35 !important;
}

[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) label,
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > button,
[data-current-step] .space-y-3:has(input[placeholder*="admissions"]) > p:not(:first-child) {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

body:has([data-current-step]) [data-current-step] {
  font-size: 16px;
}

body:has([data-current-step]) [data-current-step] input,
body:has([data-current-step]) [data-current-step] select,
body:has([data-current-step]) [data-current-step] textarea {
  border: 2px solid #5f8fce !important;
  background: #fff !important;
  color: #101828 !important;
  font-size: 1rem !important;
  box-shadow: 0 1px 2px rgba(16, 48, 89, .08) !important;
}

body:has([data-current-step]) [data-current-step] input:focus,
body:has([data-current-step]) [data-current-step] select:focus,
body:has([data-current-step]) [data-current-step] textarea:focus {
  border-color: #1769d2 !important;
  box-shadow: 0 0 0 4px rgba(23, 105, 210, .18) !important;
  outline: none !important;
}

body:has([data-current-step]) [data-current-step] input:hover,
body:has([data-current-step]) [data-current-step] select:hover,
body:has([data-current-step]) [data-current-step] textarea:hover {
  border-color: #1769d2 !important;
}

body:has([data-current-step]) [data-current-step] > div > div.p-8 {
  border-top: 5px solid #1769d2;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 48, 89, .1);
}

body:has([data-current-step]) [data-current-step] button.border {
  border-width: 2px !important;
  border-color: #8aadd8 !important;
}

body:has([data-current-step]) [data-current-step] button.border:hover:not(:disabled) {
  border-color: #1769d2 !important;
  background: #e8f2ff !important;
  color: #0b3f80 !important;
  box-shadow: 0 3px 12px rgba(23, 105, 210, .18) !important;
}

body:has([data-current-step]) [data-current-step] button.border-accent {
  border-color: #1769d2 !important;
  background: #dcecff !important;
  box-shadow: inset 4px 0 0 #1769d2, 0 2px 8px rgba(23, 105, 210, .12) !important;
}

body:has([data-current-step]) [data-current-step] label,
body:has([data-current-step]) [data-current-step] p,
body:has([data-current-step]) [data-current-step] span {
  color: #101828;
}

body:has([data-current-step]) [data-current-step] label {
  font-size: .9rem !important;
  line-height: 1.35;
}

body:has([data-current-step]) [data-current-step] button {
  font-size: .95rem;
}

body:has([data-current-step]) [data-current-step] .text-\[10px\],
body:has([data-current-step]) [data-current-step] .text-xs,
body:has([data-current-step]) [data-current-step] small {
  font-size: 12px !important;
  line-height: 1.45 !important;
}

body:has([data-current-step]) [data-current-step] .ifcs-delivery-fields {
  margin: 0 0 12px 28px !important;
  padding: 18px !important;
  border: 1px solid #a9c5ec;
  border-left: 4px solid #1769d2;
  border-radius: 6px !important;
  background: #f7faff;
}

body:has([data-current-step]) [data-current-step] .ifcs-delivery-fields::before {
  display: block;
  margin-bottom: 12px;
  color: #174e92;
  content: attr(data-field-heading);
  font-size: .88rem;
  font-weight: 800;
}
@media (min-width: 900px) {
  body:has([data-current-step]) .max-w-4xl {
    max-width: 72rem !important;
  }

  body:has([data-current-step]) section:has(> [data-current-step]) {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }

  body:has([data-current-step]) [data-current-step] > div > div.p-8 {
    padding: 3.5rem 4rem !important;
  }

  body:has([data-current-step]) [data-current-step] input,
  body:has([data-current-step]) [data-current-step] select {
    min-height: 3.5rem;
    font-size: 1rem;
  }

  body:has([data-current-step]) [data-current-step] textarea {
    font-size: .95rem;
  }

  body:has([data-current-step]) [data-current-step] label {
    font-size: .9rem;
  }
}

body:has([data-current-step]) button:disabled {
  cursor: not-allowed;
}

body:has([data-current-step]) button:disabled > div {
  opacity: .62;
}

/* Keep the evaluation introduction crisp and readable over the night image. */
.evaluation-hero-clean .hero-text-shadow > a:first-child,
.evaluation-hero-clean .hero-text-shadow > p,
.evaluation-hero-clean .hero-text-shadow > h1 {
  color: #fff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .82) !important;
}

.evaluation-hero-clean .video-overlay {
  background: rgba(0, 16, 40, .46) !important;
}

.evaluation-hero-clean .tesla-btn-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .9) !important;
  background: rgba(0, 20, 48, .28) !important;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .8) !important;
}

.evaluation-hero-clean .tesla-btn-outline:hover {
  color: #fff !important;
  border-color: #fff !important;
  background: rgba(255, 255, 255, .16) !important;
}

.evaluation-service-card {
  border: 2px solid #4f8fe8 !important;
  box-shadow: 0 0 0 4px rgba(79, 143, 232, .14), 0 12px 30px rgba(23, 105, 210, .1) !important;
  scroll-margin-top: 110px;
}

.evaluation-service-card .border {
  border-color: #5f8fce !important;
  border-width: 2px !important;
}

.evaluation-service-card p,
.evaluation-service-card span,
.evaluation-service-card label,
.evaluation-service-card button,
.evaluation-service-card a {
  color: #000 !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  opacity: 1 !important;
}

.evaluation-service-card [class*="text-muted"],
.evaluation-service-card [class*="opacity-"] {
  color: #000 !important;
  opacity: 1 !important;
}

.evaluation-service-card .bg-primary,
.evaluation-service-card .bg-primary span,
.evaluation-service-card a.bg-primary,
.evaluation-service-card button.bg-primary,
.evaluation-service-card .tesla-btn-primary,
.evaluation-service-card .tesla-btn-primary span,
.evaluation-service-card .bg-black,
.evaluation-service-card .bg-black span {
  color: #fff !important;
}

.evaluation-service-card .bg-black {
  background: #1769d2 !important;
  border-color: #1769d2 !important;
}

.evaluation-service-card .bg-black:hover {
  background: #0f56b3 !important;
  border-color: #0f56b3 !important;
}

.evaluation-services-guidance {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: center;
}

.evaluation-services-guidance p {
  color: #101828;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  margin: 0;
}

.evaluation-services-guidance button {
  align-items: center;
  background: #1769d2;
  border: 0;
  border-radius: 999px;
  color: #1769d2;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  line-height: 1;
  margin-top: 8px;
  transition: background .2s ease, transform .2s ease;
  width: 44px;
}

.evaluation-services-guidance button:hover { background: #0f56b3; transform: translateY(2px); }
.evaluation-services-guidance button:focus-visible { outline: 3px solid rgba(23,105,210,.3); outline-offset: 3px; }

.ifcs-document-quality-notice {
  margin-top: 14px;
  padding: 16px 18px;
  border: 2px solid #5f8fce;
  border-left: 5px solid #1769d2;
  border-radius: 12px;
  background: #f3f8ff;
  color: #101828;
}

.ifcs-document-quality-notice strong {
  display: block;
  color: #0b3f80;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ifcs-document-quality-notice p {
  color: #101828;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.ifcs-view-document {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid #1769d2;
  border-radius: 8px;
  background: #fff;
  color: #0b57b7;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ifcs-view-document:hover {
  background: #e8f2ff;
  color: #073b7c;
}

.ifcs-document-preview {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 15, 35, .78);
}

.ifcs-document-preview-panel {
  width: min(1100px, 96vw);
  height: min(860px, 92vh);
  overflow: hidden;
  border: 3px solid #1769d2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

.ifcs-document-preview-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 18px;
  border-bottom: 2px solid #1769d2;
  color: #000;
}

.ifcs-document-preview-panel header strong { font-size: 16px; }
.ifcs-document-preview-panel header button {
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: #1769d2;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.ifcs-document-preview-panel iframe {
  width: 100%;
  height: calc(100% - 64px);
  border: 0;
  background: #eef3f8;
}

/* Application readability: 12-point minimum, solid black, and bold. */
body:has([data-current-step]) [data-current-step] p,
body:has([data-current-step]) [data-current-step] span,
body:has([data-current-step]) [data-current-step] label,
body:has([data-current-step]) [data-current-step] button,
body:has([data-current-step]) [data-current-step] input,
body:has([data-current-step]) [data-current-step] select,
body:has([data-current-step]) [data-current-step] textarea,
body:has([data-current-step]) [data-current-step] small {
  color: #000 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  opacity: 1 !important;
}

body:has([data-current-step]) [data-current-step] input::placeholder,
body:has([data-current-step]) [data-current-step] textarea::placeholder {
  color: #6b7280 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

body:has([data-current-step]) [data-current-step] .bg-accent,
body:has([data-current-step]) [data-current-step] .bg-accent span,
body:has([data-current-step]) [data-current-step] .bg-primary,
body:has([data-current-step]) [data-current-step] .bg-primary span,
body:has([data-current-step]) [data-current-step] .bg-black,
body:has([data-current-step]) [data-current-step] .bg-black span {
  color: #fff !important;
}

#home-affiliations { background: #fff; border-bottom: 1px solid #d9dee7; padding: 52px 24px 58px; }
.affiliations-inner { margin: 0 auto; max-width: 1180px; text-align: center; }
.affiliations-eyebrow { color: #a66b0f; font-size: 12px; font-weight: 800; letter-spacing: .16em; margin: 0 0 10px; text-transform: uppercase; }
.affiliations-inner h2 { color: #10213d; font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.15; margin: 0; }
.affiliations-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; }
.affiliation-item { align-items: center; border-left: 1px solid #e2e6ec; display: flex; flex-direction: column; min-width: 0; padding: 10px 18px 8px; }
.affiliation-item:first-child { border-left: 0; }
.affiliation-item:nth-child(5) { border-left: 0; }
.affiliation-item:nth-child(n + 5) { border-top: 1px solid #e2e6ec; padding-top: 22px; }
.affiliation-logo-wrap { align-items: center; display: flex; height: 64px; justify-content: center; width: 100%; }
.affiliation-logo-wrap img { display: block; max-height: 54px; max-width: 132px; object-fit: contain; }
.affiliation-wordmark { color: #173e70; font-family: Arial, sans-serif; font-size: 25px; font-weight: 800; letter-spacing: .03em; }
.affiliation-item p { color: #5d6674; font-size: 11px; line-height: 1.4; margin: 12px 0 0; }
.affiliations-link { border-bottom: 1px solid #a66b0f; color: #10213d; display: inline-flex; font-size: 13px; font-weight: 700; gap: 8px; margin-top: 32px; padding-bottom: 5px; text-decoration: none; }

#evaluations .tesla-section-content,
#evaluations .tesla-section-content *,
#translations .tesla-section-content,
#translations .tesla-section-content *,
#credential-clarity .tesla-section-content,
#credential-clarity .tesla-section-content *,
#consulting .tesla-section-content,
#consulting .tesla-section-content * {
  text-shadow: none !important;
}

/* Keep the shared For Institutions glass surface; only adapt text for this pale image. */
#translations .tesla-cta-group > a.border-2 {
  color: #10213d !important;
  background: rgba(255, 255, 255, .12) !important;
  border-color: rgba(255, 255, 255, .6) !important;
  -webkit-backdrop-filter: blur(8px);
}

#translations .tesla-cta-group > a.border-2:focus-visible {
  outline: 2px solid #10213d;
  outline-offset: 4px;
}

#translation-quote-details {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 28px;
  max-width: 72rem;
}

.quote-details-intro { grid-column: 1 / -1; margin-bottom: 8px; text-align: center; }
.quote-details-intro p, .directory-label { color: #a66b0f; font-size: 11px; font-weight: 800; letter-spacing: .14em; margin: 0 0 8px; text-transform: uppercase; }
.quote-details-intro h2 { color: #10213d; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; margin: 0; }
.quote-details-intro span { color: #5d6674; display: block; font-size: 15px; line-height: 1.6; margin: 14px auto 0; max-width: 760px; }

.quote-detail-card {
  background: #fff;
  border: 1px solid #dfe4eb;
  border-left: 3px solid #b27617;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
}

.quote-detail-card:nth-of-type(2) { border-left-color: #1f6f8b; }
.quote-detail-card:nth-of-type(3) { border-left-color: #b23a48; }
.quote-detail-card:nth-of-type(4) { border-left-color: #2f7d65; }

.quote-detail-card strong { color: #10213d; font-size: 14px; }
.quote-detail-card span { color: #5d6674; font-size: 13px; line-height: 1.55; }

.translation-service-directory { display: grid; gap: 20px; grid-column: 1 / -1; grid-template-columns: 1.15fr .85fr; margin-top: 16px; }
.translation-service-directory > article { background: #fff; border: 1px solid #dfe4eb; padding: 28px; }
.translation-service-directory > article:first-child { background: #f5f8fc; border-top: 4px solid #2d5f91; }
.translation-service-directory > article:nth-child(2) { background: #fffaf0; border-top: 4px solid #b27617; }
.translation-service-directory h3 { color: #10213d; font-size: 22px; line-height: 1.25; margin: 0 0 22px; }

body:has(#translation-quote-details) form {
  color: #111827;
}

body:has(#translation-quote-details) form label,
body:has(#translation-quote-details) form p,
body:has(#translation-quote-details) form span {
  color: #1f2937;
  font-size: 14px;
  line-height: 1.5;
}

body:has(#translation-quote-details) form input,
body:has(#translation-quote-details) form textarea,
body:has(#translation-quote-details) form select {
  background: #fff !important;
  border: 2px solid #8eb6df !important;
  color: #111827 !important;
  font-size: 16px !important;
}

body:has(#translation-quote-details) form input:hover,
body:has(#translation-quote-details) form textarea:hover,
body:has(#translation-quote-details) form select:hover {
  border-color: #1769c2 !important;
}

body:has(#translation-quote-details) form input:focus,
body:has(#translation-quote-details) form textarea:focus,
body:has(#translation-quote-details) form select:focus {
  border-color: #0b63ce !important;
  box-shadow: 0 0 0 4px rgba(11, 99, 206, .14) !important;
}

body:has(#translation-quote-details) form [class*="border-dashed"] {
  background: #eef6ff !important;
  border: 3px dashed #2774c7 !important;
  color: #10213d !important;
  min-height: 180px;
}

nav a[data-primary-link="duplicate-reports"] > div {
  min-height: 48px;
  padding-inline: 20px;
  white-space: nowrap;
}

nav a[data-primary-link="duplicate-reports"] span {
  color: inherit;
  font-size: 14px !important;
  font-weight: 700;
}

.quote-details-intro {
  background-image: linear-gradient(rgba(8, 27, 53, .78), rgba(8, 27, 53, .78)), url('/wp-content/mu-plugins/ifcs-hostgator-production/frontend/assets/translations-bg-NAe_7Qb-.jpg');
  background-position: center;
  background-size: cover;
  padding: 46px 32px;
}

.quote-details-intro p,
.quote-details-intro h2,
.quote-details-intro span {
  color: #fff !important;
}
.language-directory { display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.language-directory li { border-top: 1px solid #dce3ec; display: grid; gap: 2px 8px; grid-template-columns: 28px 1fr; min-width: 0; padding: 10px 8px 10px 0; }
.language-directory li::before { align-self: center; content: attr(data-flag); font-size: 20px; grid-row: 1 / 3; }
.language-directory b, .document-groups b { color: #10213d; font-size: 13px; }
.language-directory span, .document-groups span, .directory-note, .ata-service-panel span { color: #687180; font-size: 12px; line-height: 1.5; }
.directory-note { margin: 18px 0 0; }
.document-groups { display: grid; gap: 16px; }
.document-groups div { border-bottom: 1px solid #e7eaf0; display: flex; flex-direction: column; gap: 5px; padding-bottom: 14px; }
.ata-service-panel { align-items: center; background: #eef7f4 !important; border-left: 4px solid #2f7d65 !important; display: flex; gap: 28px; grid-column: 1 / -1; }
.ata-service-panel img { height: 92px; object-fit: contain; width: 150px; }
.ata-service-panel h3 { margin-bottom: 8px; }

.evaluation-hero-clean {
  background: #071f4b;
  border-bottom: 1px solid #dfe4eb;
  min-height: 560px !important;
}

.evaluation-hero-clean h1,
.evaluation-hero-clean p { color: #fff !important; }
.evaluation-hero-clean > div > p { color: rgba(255,255,255,.9) !important; }
.evaluation-hero-clean a { border-color: #fff !important; color: #fff !important; }
.evaluation-hero-clean .tesla-btn-primary { color: #fff !important; }

@media (max-width: 680px) {
  #translation-quote-details { grid-template-columns: 1fr; }
  .translation-service-directory { grid-template-columns: 1fr; }
  .language-directory { grid-template-columns: 1fr; }
  .ata-service-panel { align-items: flex-start; flex-direction: column; gap: 16px; }
}

@media (max-width: 900px) {
  .affiliations-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .affiliation-item:nth-child(4) { border-left: 0; }
  .affiliation-item:nth-child(5) { border-left: 1px solid #e2e6ec; }
  .affiliation-item:nth-child(n + 4) { border-top: 1px solid #e2e6ec; padding-top: 22px; }
}

@media (max-width: 560px) {
  #home-affiliations { padding: 40px 18px 44px; }
  .affiliations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .affiliation-item:nth-child(odd) { border-left: 0; }
  .affiliation-item:nth-child(even) { border-left: 1px solid #e2e6ec; }
  .affiliation-item:nth-child(n + 3) { border-top: 1px solid #e2e6ec; padding-top: 20px; }
}

body:has([data-current-step]) [data-current-step] .text-xs,
body:has([data-current-step]) [data-current-step] .text-\[10px\],
body:has([data-current-step]) [data-current-step] .text-sm {
  color: #000 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  opacity: 1 !important;
}

body:has([data-current-step]) [data-current-step] .bg-accent,
body:has([data-current-step]) [data-current-step] .bg-accent *,
body:has([data-current-step]) [data-current-step] .bg-primary,
body:has([data-current-step]) [data-current-step] .bg-primary *,
body:has([data-current-step]) [data-current-step] .bg-black,
body:has([data-current-step]) [data-current-step] .bg-black * {
  color: #fff !important;
}

.ifcs-validation-summary {
  margin: 16px 0 24px;
  padding: 18px 20px;
  border: 2px solid #c62828;
  border-left-width: 6px;
  border-radius: 12px;
  background: #fff4f4;
  color: #000;
  font-size: 16px;
  font-weight: 700;
}

.ifcs-validation-summary strong {
  display: block;
  color: #9b1c1c;
  font-size: 16px;
  margin-bottom: 8px;
}

.ifcs-validation-summary ul {
  margin: 0;
  padding-left: 22px;
}

.ifcs-validation-summary li {
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
}

.ifcs-numbered-step > div:first-child svg { display: none !important; }
.ifcs-numbered-step .ifcs-step-number {
  color: #1769d2;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.ifcs-numbered-step > div:first-child.bg-accent .ifcs-step-number { color: #fff; }

.ifcs-save-draft {
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid #1769d2 !important;
  border-radius: 12px;
  background: #fff !important;
  color: #0b57b7 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.ifcs-save-draft:hover { background: #e8f2ff !important; }
.ifcs-draft-saved {
  padding: 14px 16px;
  border: 2px solid #2f7d65;
  border-radius: 10px;
  background: #eef9f5;
  color: #164b3d !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* Calm application form treatment: retain 12pt copy without blue box outlines. */
body:has([data-current-step]) [data-current-step] input,
body:has([data-current-step]) [data-current-step] select,
body:has([data-current-step]) [data-current-step] textarea,
body:has([data-current-step]) [data-current-step] button.border,
body:has([data-current-step]) [data-current-step] .ifcs-delivery-fields {
  background: #fff !important;
  border-color: #d3d6da !important;
  box-shadow: none !important;
}

body:has([data-current-step]) [data-current-step] input:-webkit-autofill,
body:has([data-current-step]) [data-current-step] input:-webkit-autofill:hover,
body:has([data-current-step]) [data-current-step] input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
}

body:has([data-current-step]) [data-current-step] input:hover,
body:has([data-current-step]) [data-current-step] select:hover,
body:has([data-current-step]) [data-current-step] textarea:hover,
body:has([data-current-step]) [data-current-step] input:focus,
body:has([data-current-step]) [data-current-step] select:focus,
body:has([data-current-step]) [data-current-step] textarea:focus {
  border-color: #aeb3ba !important;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .08) !important;
}

body:has([data-current-step]) [data-current-step] > div > div.p-8 {
  border-top-color: #d3d6da !important;
  background: #fff !important;
}

body:has([data-current-step]) [data-current-step] .ifcs-delivery-fields {
  border-left-color: #d3d6da !important;
}

/* Application and evaluation content only; navigation and hosted checkout retain their own styles. */
body:has(#root [data-current-step]),
body:has(#root #services),
body #root:has([data-current-step], #services) > .bg-background,
body #root .ifcs-application-content,
body #root #services,
body #root #services .evaluation-service-card {
  background-color: #fff !important;
  background-image: none !important;
}

body #root #services :is([class*="bg-gradient"], [class*="blur-"]) {
  background-image: none !important;
  background-color: transparent !important;
}

body #root #services .evaluation-service-card > .absolute[style] {
  background: transparent !important;
}
body #root #services :is([class^="bg-black/"], [class*=" bg-black/"]) {
  background-color: #fff !important;
}
body #root #services button[class~="bg-black/15"] {
  background-color: #f1f1f1 !important;
}

body #root #services :is(.uppercase, [class*="tracking-"]) {
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 600 !important;
}

body #root :is([data-current-step], #services),
body #root :is([data-current-step], #services) :not([data-ifcs-payment-mode], [data-ifcs-payment-mode] *) {
  border-color: #d4d4d4 !important;
  box-shadow: none !important;
  outline: none !important;
}

body #root :is([data-current-step], #services) :is(.border-2, .border-4, .evaluation-service-card, .evaluation-service-card .border, .ifcs-delivery-fields, .ifcs-document-quality-notice, .ifcs-save-draft) {
  border-width: 1px !important;
}

body #root :is([data-current-step], #services) :is(input, select, textarea, button):not([data-ifcs-payment-mode] *) {
  border-color: #c5c5c5 !important;
}

body #root [data-current-step],
body #root [data-current-step] :not([data-ifcs-payment-mode], [data-ifcs-payment-mode] *) {
  color: #000 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

body #root [data-current-step] :is(input, textarea)::placeholder {
  color: #595959 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

body #root [data-current-step] :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 600 !important;
}
body #root [data-current-step] :is(h1, h2) { font-size: 24px !important; }
body #root [data-current-step] :is(h3, h4, h5, h6) { font-size: 20px !important; }
body #root [data-current-step] :is(small, .text-xs):not([data-ifcs-payment-mode] *) { font-size: 14px !important; }

body #root :is([data-current-step], #services) :is(.bg-muted, [class*="bg-muted/"], [class*="bg-accent/"], .ifcs-delivery-fields, .ifcs-document-quality-notice):not([data-ifcs-payment-mode], [data-ifcs-payment-mode] *) {
  background-color: #fff !important;
}

body #root :is([data-current-step], #services) :is(.bg-accent, .bg-primary, .bg-black, .tesla-btn-primary):not([data-ifcs-payment-mode] *),
body #root :is([data-current-step], #services) :is(.bg-accent, .bg-primary, .bg-black, .tesla-btn-primary) :not([data-ifcs-payment-mode] *) {
  color: #fff !important;
}

body #root :is([data-current-step], #services) :is(input, select, textarea, button, a, [tabindex]):focus-visible:not([data-ifcs-payment-mode] *) {
  outline: 2px solid #444 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

/* One framed application tool; specificity overrides the legacy blanket shadow reset. */
/* Processing selection is driven by the component's per-card state. */
body #root#root #services .grid.grid-cols-3 > button.group:is([aria-pressed="true"], :hover, :focus-visible) {
  background-color: #1769d2 !important;
  color: #fff !important;
}
body #root#root #services .grid.grid-cols-3 > button.group:is([aria-pressed="true"], :hover, :focus-visible) * {
  color: #fff !important;
}
body #root#root #services .grid.grid-cols-3 > button.group[aria-pressed="false"]:is(:hover, :focus-visible) {
  background-color: #0f56b3 !important;
}
@media (max-width: 440px) {
  body #root#root #services .grid.grid-cols-3:has(> button.group) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  body #root#root #services .evaluation-service-card .mt-auto > .flex.gap-3 {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
  }
  body #root#root #services .evaluation-service-card .mt-auto > .flex.gap-3 > :is(button, a) {
    flex: 1 1 140px;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    justify-content: center;
    white-space: normal;
    padding-inline: 12px;
  }
}

body #root#root [data-current-step] > .overflow-hidden {
  background: #f8f9f8 !important;
  border: 1px solid #d9dcd9 !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .06) !important;
  overflow: visible;
}
body #root#root [data-current-step] > .overflow-hidden > .h-1 {
  display: none;
}
body #root#root [data-current-step] .ifcs-application-panel {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 32px 40px !important;
}
body #root#root [data-current-step] .ifcs-application-panel input[type="file"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
body #root#root [data-current-step] .ifcs-application-panel h2 {
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin-bottom: 8px;
}
body #root#root [data-current-step] .ifcs-application-panel h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
}
body #root#root [data-current-step] .ifcs-application-panel button.bg-accent {
  background-color: #252525 !important;
}
@media (max-width: 640px) {
  body #root#root .ifcs-application-content { padding-inline: 12px; }
  body #root#root [data-current-step] .ifcs-application-panel { padding: 24px 16px !important; }
  body #root#root [data-current-step] .ifcs-application-panel button {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
    padding-inline: 16px;
  }
  body #root#root [data-current-step] .ifcs-application-panel .flex.justify-between.border-t:has(> button) {
    flex-wrap: wrap;
    gap: 12px;
  }
  body #root#root [data-current-step] .ifcs-application-panel .flex.justify-between.border-t > button {
    flex-shrink: 0;
  }
}
