/* ---------------------------------------------------------------------------
   CONTACT US (contact-us/, 2 Nov 2026)

   The page is laid out like the Digital Solutions landing: digital-solutions.css
   (loaded just before this sheet) gives the dark hero (.dsol-hero, copy only),
   the cards (.dsol-grid, .dsol-card--tick, .dsol-step-title, .dsol-sol__hl,
   .dsol-get, .dsol-chips) and the dark rounded closing box (.dsol-proof). The office details inside the cards keep this
   page's own .offcard__addr / .offcard__info / .offcard__map (content.css).
   Markup: scripts/build-contact-page.mjs.

   The Digital pages take .bens__label / .bens__body and --brand-primary-text
   from speciality-chemicals.css. That sheet is not loaded here (it restyles
   .h2, .btn and .container), so the few rules the cards need are repeated
   below. typography.css still sets their type sizes.
   --------------------------------------------------------------------------- */

#main-content.dsol-page { --brand-primary-text: #00679F; }
/* Section rhythm of the Digital pages (the handoff wrapper tightens it to 40px). */
#main-content.dsol-page .handoff-page { --section-pad: clamp(40px, 4.5vw, 64px); }


#main-content .bens__label {
  display: block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 12px;
}
#main-content .bens__body { margin: 0 0 18px; color: var(--text-secondary); }
#main-content .dsol-get .bens__label { margin-bottom: 10px; color: var(--text-secondary); }

/* Hero: copy only, so the text column may run a little wider. */
#main-content .ovs-hero .page-banner__copy { max-width: 720px; }

/* Office cards: the India cards' address and contact rows, at the Digital
   cards' reading size (15px regular, not 14px light). */
#main-content .ovs-card .offcard__addr { max-width: none; margin: 0 0 20px; font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--text-secondary); }
#main-content .ovs-card .offcard__pin { top: 5px; }
#main-content .dsol-get .offcard__info { margin: 0; gap: 10px; }
#main-content .ovs-card .offcard__info-row { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; }
#main-content .ovs-card .offcard__info-label { font-size: 11px; letter-spacing: 0.14em; color: var(--text-secondary); }
#main-content .ovs-card .offcard__info-value { font-size: 14px; line-height: 1.5; overflow-wrap: normal; }
#main-content .ovs-card .offcard__map { font-size: 14px; }
#main-content .ovs-person { display: block; }
#main-content .ovs-person + .ovs-person { margin-top: 6px; }
#main-content .ovs-role { display: block; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
#main-content .ovs-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
#main-content .ovs-links .offcard__map { margin-top: 0; }

/* Enquiry: the form and the "Reach us directly" lines, two cards of one height. */
#main-content .ovs-enquiry {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(16px, 1.9vw, 24px);
  align-items: start;
}
#main-content .ovs-form-card,
#main-content .ovs-talk { padding: clamp(24px, 2.8vw, 34px); }
#main-content .ovs-enquiry .form { gap: 18px; }
#main-content .ovs-enquiry .form__row { gap: 16px; }
#main-content .ovs-enquiry .field { gap: 8px; }
#main-content .ovs-enquiry .field__label {
  font-family: var(--type-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
#main-content .ovs-enquiry .field__input {
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  color: var(--text-primary);
  background-color: #ffffff;
  border: 1px solid #d3e0ec;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(15, 39, 64, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
#main-content .ovs-enquiry select.field__input { padding-right: 40px; cursor: pointer; }
#main-content .ovs-enquiry select.field__input:invalid { color: #8a9bb0; }
#main-content .ovs-enquiry select.field__input option { color: var(--text-primary); }
#main-content .ovs-enquiry .field__input--area { height: auto; min-height: 116px; padding: 12px 16px; line-height: 1.6; resize: vertical; }
#main-content .ovs-enquiry .field__input:hover { border-color: rgba(0, 124, 195, 0.45); }
#main-content .ovs-enquiry .field__input:focus,
#main-content .ovs-enquiry .field__input:focus-visible { background-color: #ffffff; border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(0, 124, 195, 0.14); outline: none; }
#main-content .ovs-enquiry .field__input:user-invalid { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.10); }
#main-content .ovs-enquiry .field__req { color: var(--brand-primary); }
/* Phone: country code box shows just the flag and code once chosen (handoff-interactions.js). */
#main-content .ovs-enquiry .field__phone { display: flex; gap: 8px; }
#main-content .ovs-enquiry .field__phone select { flex: 0 0 128px; min-width: 0; padding-left: 12px; }
#main-content .ovs-enquiry .field__phone input { flex: 1 1 auto; min-width: 0; }
/* Upload: a quiet brand-blue button inside the field. */
#main-content .ovs-enquiry input[type="file"].field__input { height: auto; min-height: 48px; padding: 7px 8px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
#main-content .ovs-enquiry input[type="file"].field__input::file-selector-button {
  margin-right: 12px; padding: 8px 14px; border: 0; border-radius: var(--radius-md);
  background: #e8f2fa; color: #005691; font: inherit; font-weight: 600; cursor: pointer; transition: background-color 0.15s ease;
}
#main-content .ovs-enquiry input[type="file"].field__input:hover::file-selector-button { background: #d6e9f7; }
#main-content .ovs-enquiry .form__foot { margin-top: 4px; gap: 18px; }
#main-content .ovs-enquiry .form__note { font-size: 13px; font-weight: 400; max-width: none; }
#main-content .ovs-talk .bens__body { margin-bottom: 20px; }
#main-content .ovs-talk .direct { gap: 10px; margin-top: 0; }
/* The side box hugs its content and stays in view while the longer form scrolls (desktop). */
@media (min-width: 961px) {
  #main-content .ovs-talk { position: sticky; top: 112px; }
}
#main-content .ovs-talk .direct__row { gap: 16px; padding: 16px; border: 1px solid var(--border-light); background: var(--surface-neutral-light); border-radius: var(--radius-md); }
#main-content .ovs-talk .direct__row:hover { border-color: rgba(0, 124, 195, 0.35); background: var(--surface-card); }
#main-content .ovs-talk .direct__icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--surface-card); }
#main-content .ovs-talk .direct__label { font-size: 11px; letter-spacing: 0.14em; }
#main-content .ovs-talk .direct__value { margin-top: 3px; font-size: 15px; }
@media (max-width: 960px) {
  #main-content .ovs-enquiry { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  #main-content .ovs-enquiry .form__row { grid-template-columns: minmax(0, 1fr); }
}

/* Closing: the Digital proof box, with the two email buttons in place of figures. */
#main-content .ovs-closing .dsol-proof .eyebrow { display: inline-block; }
#main-content .ovs-closing__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
#main-content .ovs-closing__actions .btn { padding: 14px 28px; min-width: 280px; justify-content: space-between; }
#main-content .ovs-closing__actions .btn--primary { background: #ffffff; color: #020d1e; border-color: transparent; font-weight: 700; }
#main-content .ovs-closing__actions .btn--primary:hover { background: #e8f3fb; color: #020d1e; }
#main-content .ovs-closing__actions .btn__arrow { width: 16px; height: 16px; }
@media (max-width: 960px) {
  #main-content .ovs-closing__actions { align-items: flex-start; }
}
@media (max-width: 420px) {
  #main-content .ovs-closing__actions .btn { min-width: 0; width: 100%; }
}

/* Where we serve: country chips (the Digital "where it applies" pills, as links). */
#main-content .ovs-region .dsol-chips { gap: 8px; margin-bottom: 18px; }
#main-content .ovs-card .dsol-chips li {
  padding: 0;
  transition: border-color var(--duration-standard) var(--ease-standard), box-shadow var(--duration-standard) var(--ease-standard);
}
#main-content .ovs-card .dsol-chips li:hover { border-color: var(--brand-primary); box-shadow: var(--card-shadow-hover); }
#main-content .ovs-card .dsol-chips a { display: block; padding: 9px 16px; color: inherit; text-decoration: none; }
#main-content .ovs-office-links { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-primary); }
#main-content .ovs-office-links a { color: var(--brand-primary-text); font-weight: 500; white-space: nowrap; }
#main-content .ovs-office-links a:hover { text-decoration: underline; }

/* Two columns (tablet): an odd last office card takes the full row, address on
   the left and contact box on the right, so no card sits alone. */
@media (min-width: 621px) and (max-width: 1080px) {
  #main-content .dsol-grid--3 > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #main-content .dsol-grid--3 > li:last-child:nth-child(odd) .ovs-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(20px, 3vw, 32px);
    align-content: start;
  }
  #main-content .dsol-grid--3 > li:last-child:nth-child(odd) .ovs-card > * { grid-column: 1; }
  #main-content .dsol-grid--3 > li:last-child:nth-child(odd) .ovs-card > .dsol-get { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; align-self: start; }
  #main-content .dsol-grid--3 > li:last-child:nth-child(odd) .ovs-card > .ovs-links { grid-column: 2; grid-row: 5; }
}

/* 4 Nov 2026 (user: a cleaner Contact Us). The overseas offices run as a
   slider (house rule: five or more cards never wrap; card-rails.js), and in
   every office and region card the contact box and links sit at the foot, so
   they line up across a row whatever the address length. In the slider's
   narrower cards the label sits above the value, as on phones. */
#main-content .ovs-card { display: flex; flex-direction: column; height: 100%; }
#main-content .ovs-card > .dsol-get { margin-top: auto; }
#main-content #overseas .is-rail .ovs-card .offcard__info-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }

/* Narrow phones: label above value, so the longer email addresses stay whole. */
@media (max-width: 440px) {
  #main-content .ovs-card .offcard__info-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  #main-content .ovs-card .dsol-chips li { transition: none; }
}
