/* The contact section. Markup: partials/contact.html, behaviour: assets/contact.js.
   Edit it here only.

   The first block restates, scoped to #contact, the base rules the form takes from
   the home page's own stylesheet (card, field, label, chips, button), so a page
   that does not carry that stylesheet still gets the same form. On the home page
   they repeat what is already there, value for value. */
#contact .card {
  background: #0f1e35;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 4px 24px rgba(0,0,0,0.4);
}
#contact .form-input {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 11px 15px;
  color: #fff;
  font-family: 'Heebo', sans-serif;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  outline: none;
  direction: rtl;
}
#contact .form-label {
  display: block; font-size: 0.9375rem; font-weight: 500;
  color: rgba(255,255,255,0.65); margin-bottom: 5px;
}
#contact .ks-needs { display: flex; flex-wrap: wrap; gap: 7px; }
#contact .ks-chip {
  padding: 7px 13px; border-radius: 100px;
  font-family: 'Heebo', sans-serif; font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
#contact .ks-chip.on { font-weight: 600; }
#contact .ks-chip:focus-visible { outline: 2px solid #f07316; outline-offset: 2px; }
#contact .ks-other[hidden] { display: none; }
#contact .req { color: #f07316; font-weight: 700; margin-right: 3px; }
#contact .btn-primary {
  font-family: 'Heebo', sans-serif; font-weight: 600;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.2s ease, box-shadow 0.2s ease;
}
#contact .btn-primary:hover { transform: translateY(-1px); }
#contact .btn-primary:active { transform: translateY(0) scale(0.98); }
#contact .btn-primary:focus-visible { outline: 2px solid #f07316; outline-offset: 3px; }
#contact p { max-width: none; }

/* ── the closing section runs light, like the hero ──────────────────────────
   Its top edge is the hero's diagonal mirrored: there the dark climbs to the
   right, here it falls to the right, so the page opens and closes on the same
   shape instead of repeating it. Same 2px overlap as the hero seam, for the
   same reason: two blocks meeting exactly on the boundary leave a hairline of
   the page's own navy showing through. */
#contact.contact-light{ background:#f4f4f7; margin-top:-2px; --ct-ink:#0b1527; --ct-mut:rgba(11,21,39,0.6) }
/* the section above this one is light too now, so the diagonal that used to sit here
   had nothing left to separate. The light runs unbroken from the questions to the
   footer, and the seam that opens it lives on the questions instead. */
/* the cards, the field boxes and the chips all come from the dark stylesheet */
#contact.contact-light .card{ background:#fff;
  border:1px solid rgba(11,21,39,0.10);
  box-shadow:0 10px 30px rgba(11,21,39,0.07) }
#contact.contact-light .card:hover{ box-shadow:0 12px 34px rgba(11,21,39,0.10) }
#contact.contact-light .form-input{ background:#fff; border:1px solid rgba(11,21,39,0.14);
  color:#0b1527 }
#contact.contact-light .form-input:focus{ border-color:rgba(240,115,22,0.6); background:#fff }
#contact.contact-light .form-input::placeholder{ color:rgba(11,21,39,0.38) }
#contact.contact-light .form-label{ color:rgba(11,21,39,0.62) }
#contact.contact-light .ks-chip{ background:rgba(11,21,39,0.03);
  border:1px solid rgba(11,21,39,0.14); color:rgba(11,21,39,0.7) }
#contact.contact-light .ks-chip:hover{ border-color:rgba(240,115,22,0.5);
  color:#0b1527; background:rgba(240,115,22,0.07) }
#contact.contact-light .ks-chip.on{ border-color:#f07316; background:rgba(240,115,22,0.12);
  color:#c85a08 }
/* a navy button on a light ground, the same swap the light hero makes */
#contact.contact-light .btn-primary{ background:#0b1527; color:#fff;
  box-shadow:0 0 0 1px rgba(11,21,39,0.25), 0 6px 20px rgba(11,21,39,0.18) }
#contact.contact-light .btn-primary:hover{ background:#152744 }
#contact.contact-light a[href="/privacy"]{ color:rgba(11,21,39,0.6) }

/* ── the two contact cards ────────────────────────────────────────────────
   One line shows at a time and the second slides up in its place on hover.
   The icon stays put so the eye does not lose its place between the two
   cards, and the chevron at the far edge is the only thing that says the
   card is clickable, which is the one fact the card cannot show otherwise. */
#contact .cc-card{ display:flex; align-items:center; gap:1rem; min-height:88px;
  padding:1.25rem 1.5rem; border-radius:12px; text-decoration:none;
  transition:border-color 0.2s, box-shadow 0.2s }
#contact .cc-card:hover{ border-color:rgba(240,115,22,0.4);
  box-shadow:0 12px 34px rgba(11,21,39,0.10) }
#contact .cc-ico{ display:flex; flex-shrink:0 }
#contact .cc-stack{ position:relative; overflow:hidden; height:46px; flex:1 }
#contact .cc-a, #contact .cc-b{ position:absolute; inset:0; display:flex; align-items:center;
  font-weight:600; font-size:1rem; color:var(--ct-ink); line-height:1.35;
  transition:transform 0.42s cubic-bezier(0.2,0.75,0.25,1), opacity 0.28s ease }
#contact .cc-b{ transform:translateY(100%); opacity:0 }
#contact .cc-card:hover .cc-a{ transform:translateY(-100%); opacity:0 }
#contact .cc-card:hover .cc-b{ transform:translateY(0); opacity:1 }
#contact .cc-chev{ display:flex; flex-shrink:0; color:rgba(11,21,39,0.35);
  transition:transform 0.25s ease, color 0.25s ease }
#contact .cc-card:hover .cc-chev{ transform:translateX(-5px); color:#f07316 }
/* a phone has no hover and neither does a visitor who asked for less motion,
   so there both lines simply stand one under the other, as they used to */
@media (max-width: 900px), (prefers-reduced-motion: reduce){
  #contact .cc-stack{ height:auto; overflow:visible }
  #contact .cc-a, #contact .cc-b{ position:static; display:block; transform:none;
    opacity:1; transition:none }
  #contact .cc-b{ font-weight:400; font-size:0.875rem; color:var(--ct-mut);
    margin-top:0.25rem }
  #contact .cc-card:hover .cc-a{ transform:none; opacity:1 }
}
@media (max-width: 900px){
  #contact.contact-light{ padding-top:3rem !important }
}

@media (max-width: 767px) {
  #contact-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
}
