/* ============================================================
 * Kelid Tehran 70.0.0 — s70-contact.css
 * Contact elevation: the tel: card becomes the single
 * dominant CTA (hero gold card, static gold hairline);
 * WhatsApp/address stay quiet; form plumbing untouched.
 * Enqueued AFTER corp-sections-b.css; matching selectors
 * win ties. Mobile-first, 390px master. No signature motion:
 * the phone number IS the CTA — ornament stays static.
 * main.js hooks (#kelid-contact-form, #contact-msg,
 * .kt-pb data-state, all field names) untouched.
 * ============================================================ */

/* ---------- hero call card: THE dominant CTA ---------- */
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero{
  position:relative;overflow:hidden;isolation:isolate;
  min-height:64px;padding:16px 18px;gap:14px;
  /* 70.0.0 loop7 (minimalist M-CONTACT-1): the 3-stop directional gold
     wash (.16→.05→.02) stacked with the gold border + static gold top
     hairline + gold icon chip + gold label text — four gold signals on one
     card. Flattened to a quiet uniform tint; border + hairline + gold type
     keep the hero identity. Contrast recomputed 2026-09-30: label #F5D67B
     12.96:1, value #F7F4EC 16.75:1 (≥4.5:1 PASS). */
  background:rgba(217,169,63,.05);
  border:1px solid var(--cb2-gold-line);
  /* 70.0.0 loop6: deleted dead box-shadow — s70-page.css (loads last) sets
     box-shadow:none on this identical selector (loop-4 C3 demotion). */
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  user-select:none;-webkit-user-select:none;
}
/* 70.0.0 loop3 (Grok critique): the infinite radial glow was gold noise
   for stressed users — replaced with one static hairline. No animation. */
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero::before{
  content:"";position:absolute;inset-block-start:0;inset-inline:14px;height:1px;z-index:0;pointer-events:none;
  background:linear-gradient(to right,transparent,rgba(217,169,63,.75),transparent);
}
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero > *{position:relative;z-index:1}
/* 390px guard: let the text column shrink inside the flex card */
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero > span:not(.cb2-ccard__icon){min-width:0}
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero:active{
  transform:scale(.98);transition:transform 140ms ease-out;
}
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero:focus-visible{
  outline:2px solid var(--cb2-gold-ink);outline-offset:2px;
}
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero .cb2-ccard__icon{
  width:52px;height:52px;border-radius:16px;
  background:var(--cb2-gold-soft);border:1px solid var(--cb2-gold-line);
  color:var(--cb2-gold-ink);
}
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero .cb2-ccard__label{
  font-size:13px;font-weight:700;color:var(--cb2-gold-ink);
}
.cb2-contact .cb2-contact__cards > a.cb2-ccard--hero .cb2-ccard__value{
  font-size:20px;font-weight:800; /* 70.0.0 loop7: letter-spacing removed —
  Persian script must never be letter-spaced (.01em was invisible anyway) */
  font-variant-numeric:tabular-nums;
}

/* ---------- quieter secondary cards ---------- */
.cb2-contact .cb2-contact__cards > .cb2-ccard:not(:first-child){
  background:rgba(255,255,255,.02);
}
.cb2-contact .cb2-contact__cards > a.cb2-ccard:not(:first-child){
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  user-select:none;-webkit-user-select:none;
}

/* ---------- map: quieter frame, keep everything ---------- */
.cb2-contact .cb2-contact__map-link{
  min-height:44px;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  user-select:none;-webkit-user-select:none;
}

/* ---------- form: cinematic focus, touch-ready consent ----------
   70.0.0 loop7 (minimalist M-CONTACT-3): deleted this layer's gradient-wash
   override — it was imperceptible against the base flat rgba(255,255,255,.03)
   (corp-sections-b.css); the border + radius carry the panel. */
.cb2-contact .cb2-form__input,
.cb2-contact .cb2-form__select,
.cb2-contact .cb2-form__textarea{
  transition:border-color 160ms var(--cb2-ease),background-color 160ms var(--cb2-ease);
}
.cb2-contact .cb2-form__input:focus:not(:focus-visible),
.cb2-contact .cb2-form__select:focus:not(:focus-visible),
.cb2-contact .cb2-form__textarea:focus:not(:focus-visible){
  border-color:var(--cb2-gold-line);
}
/* 70.0.0 loop25: kill Chrome's yellow autofill wash on the dark fields —
   keep obsidian bg + warm ink when the browser autofills name/phone */
.cb2-contact .cb2-form__input:-webkit-autofill,
.cb2-contact .cb2-form__select:-webkit-autofill,
.cb2-contact .cb2-form__textarea:-webkit-autofill{
  -webkit-text-fill-color:var(--kt-ink);
  caret-color:var(--kt-ink);
  -webkit-box-shadow:0 0 0 100px var(--kt-surface1) inset;
  box-shadow:0 0 0 100px var(--kt-surface1) inset;
  transition:background-color 9999s ease-in-out 0s;
}
.cb2-contact .cb2-form__consent{
  min-height:44px;align-items:center;padding-block:6px;
  -webkit-tap-highlight-color:transparent;
}
.cb2-contact .cb2-form__consent input{
  width:22px;height:22px;flex:0 0 22px;margin-block-start:0;cursor:pointer;
}
/* invalid shake-free: honest red ring, no fake success */
.cb2-contact .cb2-form__input[aria-invalid="true"],
.cb2-contact .cb2-form__select[aria-invalid="true"]{
  border-color:rgba(220,90,90,.65);
}

/* ---------- message area: clear state colors ---------- */
.cb2-contact .contact-form__msg{font-size:14px;line-height:1.95;min-width:0}
.cb2-contact .contact-form__msg:empty{display:none}

/* ---------- fine-pointer-only hover ---------- */
@media (hover:hover) and (pointer:fine){
  .cb2-contact .cb2-contact__cards > a.cb2-ccard--hero:hover{
    transform:translateY(-2px);
    /* 70.0.0 loop6: deleted dead box-shadow (s70-page.css sets none, loads last). */
  }
  .cb2-contact .cb2-contact__cards > a.cb2-ccard:not(:first-child):hover{
    border-color:var(--cb2-gold-line);
  }
  .cb2-contact .cb2-contact__map-link:hover{background:rgba(11,17,30,.95)}
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .cb2-contact .cb2-contact__cards > a.cb2-ccard--hero:active{transform:none;transition:none}
  .cb2-contact .cb2-form__input,
  .cb2-contact .cb2-form__select,
  .cb2-contact .cb2-form__textarea{transition:none}
}

/* ---------- 70.0.0 loop5 (a11y): gold focus rings for the WhatsApp card,
   the Google-Maps directions link and the consent checkbox (hero card and
   text inputs already have theirs) ---------- */
.cb2-contact .cb2-contact__cards > a.cb2-ccard:not(.cb2-ccard--hero):focus-visible{
  outline:2px solid var(--cb2-gold);outline-offset:2px;border-radius:14px;
}
.cb2-contact .cb2-contact__map-link:focus-visible{
  outline:2px solid var(--cb2-gold);outline-offset:2px;border-radius:6px;
}
.cb2-contact .cb2-form__consent input:focus-visible{
  outline:2px solid var(--cb2-gold);outline-offset:2px;
}
