/* ============================================================
   Braindoos — Contact page styles
   ============================================================ */

/* ---------- CONTACT HERO ---------- */
.cohero { position: relative; background: var(--navy-900); color: #fff; padding: calc(var(--nav-h) + 64px) 0 56px; overflow: hidden; }
.cohero__bg { position: absolute; inset: 0; background:
  radial-gradient(740px 460px at 84% 14%, rgba(34,211,238,.15), transparent 60%),
  radial-gradient(680px 500px at 6% 100%, rgba(59,91,196,.26), transparent 62%),
  linear-gradient(180deg, var(--navy-900), var(--navy-800) 82%); }
.cohero__grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 80%); }
.cohero .wrap { position: relative; z-index: 2; }
.cohero__badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 100px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cohero h1 { color: #fff; font-size: 52px; letter-spacing: -0.03em; margin-top: 22px; max-width: 760px; }
.cohero h1 .grad { background: linear-gradient(100deg, #6FE9FB, var(--accent) 50%, #7C8FF0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cohero__sub { margin-top: 20px; font-size: 19px; color: rgba(225,233,250,.78); max-width: 600px; }

/* ---------- MAIN GRID ---------- */
.contact { background: var(--bg); padding: 0 0 110px; }
.contact__inner { display: grid; grid-template-columns: 1.25fr .85fr; gap: 40px; align-items: start; margin-top: -64px; position: relative; z-index: 5; }

/* form card */
.cform { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 40px; }
.cform__head h2 { font-size: 26px; }
.cform__head p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.cform__form { margin-top: 28px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--accent-600); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  transition: border-color .18s ease, box-shadow .18s ease; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6884' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-200); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary-400); box-shadow: 0 0 0 4px rgba(59,91,196,.14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #E0526B; box-shadow: 0 0 0 4px rgba(224,82,107,.12); }
.field__err { display: none; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #D23A55; }
.field.invalid .field__err { display: block; }

/* interest chips (radio group) */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 100px; border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 600; color: var(--ink-700); cursor: pointer; transition: all .16s ease; margin: 0; }
.chips label:hover { border-color: var(--primary-400); }
.chips input:checked + label { background: var(--primary); color: #fff; border-color: var(--primary); }

/* budget range */
.cform__consent { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 24px; }
.cform__consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--primary); flex: 0 0 auto; }
.cform__consent label { font-size: 13px; color: var(--muted); line-height: 1.5; }
.cform__consent a { color: var(--primary-600); font-weight: 600; }
.cform__submit { display: flex; align-items: center; gap: 16px; }
.cform__submit .note { font-size: 13px; color: var(--muted); }

/* success state */
.cform__success { display: none; text-align: center; padding: 30px 10px; }
.cform__success.show { display: block; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cform__success .tick { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; background: linear-gradient(160deg, var(--accent-600), #0E91A8); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(34,211,238,.32); }
.cform__success .tick svg { width: 38px; height: 38px; color: #fff; }
.cform__success h2 { font-size: 28px; margin-top: 24px; }
.cform__success p { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 420px; margin-left: auto; margin-right: auto; }
.cform__success .meta { margin-top: 22px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 100px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-700); }
.cform__success .meta svg { width: 16px; height: 16px; color: var(--accent-600); }

/* ---------- SIDEBAR ---------- */
.cside { display: flex; flex-direction: column; gap: 20px; }
.cside__card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 26px; }
.cside__card h3 { font-size: 17px; }
.cside__methods { margin-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.cmethod { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; transition: background .18s ease; }
.cmethod:hover { background: var(--panel); }
.cmethod__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--panel-2); flex: 0 0 auto; }
.cmethod__ic svg { width: 20px; height: 20px; color: var(--primary); }
.cmethod .k { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cmethod .v { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 2px; }

/* dark "what happens next" */
.cside__next { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 28px; color: #fff; box-shadow: var(--shadow-md); }
.cside__next h3 { color: #fff; font-size: 17px; }
.cside__steps { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.cstep { display: flex; gap: 14px; }
.cstep__n { width: 30px; height: 30px; border-radius: 9px; background: rgba(34,211,238,.16); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.cstep h4 { color: #fff; font-size: 14.5px; font-weight: 600; }
.cstep p { color: rgba(225,233,250,.62); font-size: 13px; margin-top: 3px; line-height: 1.5; }

.cside__assure { display: flex; flex-direction: column; gap: 11px; }
.cside__assure .a { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.cside__assure .a svg { width: 16px; height: 16px; color: var(--accent-600); flex: 0 0 auto; }

/* ---------- OFFICES ---------- */
.offices { background: var(--panel); }
.offices__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.office { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .28s ease; }
.office:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.office__map { height: 120px; position: relative; }
.office__pin { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%); width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--accent-600); rotate: -45deg; box-shadow: 0 6px 14px rgba(6,182,212,.4); }
.office__pin::after { content:""; position: absolute; top: 9px; left: 9px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.office__body { padding: 20px 22px 24px; }
.office__city { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.office__tag { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; background: var(--panel); border: 1px solid var(--line); color: var(--primary-600); }
.office__addr { margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq__list { margin-top: 44px; max-width: 820px; margin-left: auto; margin-right: auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq__item.open { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; cursor: pointer; background: none; border: none; font-family: var(--font-display); font-weight: 600; font-size: 17.5px; color: var(--ink); letter-spacing: -0.01em; }
.faq__q .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--panel); display: grid; place-items: center; flex: 0 0 auto; transition: background .2s ease, transform .25s ease; }
.faq__q .ic svg { width: 17px; height: 17px; color: var(--primary); transition: transform .25s ease; }
.faq__item.open .faq__q .ic { background: var(--primary); }
.faq__item.open .faq__q .ic svg { color: #fff; transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a-inner { padding: 0 24px 24px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

@media (max-width: 1080px) {
  .contact__inner { grid-template-columns: 1fr; }
  .cform__row { grid-template-columns: 1fr; }
  .offices__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .cohero { padding: calc(var(--nav-h) + 40px) 0 40px; }
  .cohero h1 { font-size: 34px; margin-top: 16px; }
  .cohero__sub { font-size: 16.5px; margin-top: 14px; }
  .contact { padding-bottom: 72px; }
  .contact__inner { margin-top: -40px; gap: 24px; }
  .cform { padding: 24px 20px; }
  .cform__head h2 { font-size: 22px; }
  .cform__submit { flex-direction: column; align-items: stretch; gap: 10px; }
  .cform__submit .btn { width: 100%; justify-content: center; }
  .chips { gap: 7px; }
  .chips label { font-size: 12.5px; padding: 8px 12px; }
  .offices__grid { grid-template-columns: 1fr; }
  .faq__q { padding: 18px 16px; font-size: 16px; gap: 14px; }
  .faq__a-inner { padding: 0 16px 18px; font-size: 14.5px; }
}
