/* ------------------------------------------------------------------
   contact.css - the contact page only. Everything here leans on the
   tokens already defined in style.css, so the page cannot drift away
   from the rest of the site.
   ------------------------------------------------------------------ */

.contact-sec { padding: 96px 0 120px; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: start;
}

/* ---------- left column ---------- */
.contact-aside { display: grid; gap: 40px; padding-top: 6px; }
.ca-k {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 14px;
  display: flex; align-items: center; gap: 11px;
}
.ca-k::before {
  content: ""; width: 22px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--blue-2), var(--crimson-2));
}
.ca-mail {
  font-family: var(--serif); font-size: clamp(19px, 1.9vw, 25px);
  color: var(--silver); line-height: 1.3; word-break: break-word;
  border-bottom: 1px solid var(--silver-18); padding-bottom: 3px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.ca-mail:hover { border-bottom-color: var(--crimson-2); }
.ca-note { margin-top: 14px; color: var(--silver-45); font-size: 14px; line-height: 1.6; max-width: 34ch; }
.ca-line { color: var(--silver-70); font-size: 15.5px; line-height: 1.75; }
.ca-line.ca-dim { color: var(--silver-45); margin-top: 6px; }

.ca-social { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ca-soc {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--silver-70); font-size: 15px; transition: color .25s var(--ease);
}
.ca-soc svg { width: 17px; height: 17px; fill: currentColor; opacity: .7; flex: none; transition: opacity .25s; }
.ca-soc:hover { color: var(--silver); }
.ca-soc:hover svg { opacity: 1; }

/* ---------- the card ---------- */
.contact-card {
  position: relative;
  background: linear-gradient(180deg, rgba(26, 33, 96, .55), rgba(13, 18, 64, .55));
  border: 1px solid var(--hair);
  border-radius: 24px;
  padding: 42px 40px 36px;
  overflow: hidden;
}
/* the foil hairline from the tickets, reused as the card's top edge */
.contact-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2) 34%, var(--crimson-2) 72%, var(--crimson));
}
.cf-title { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 38px); font-weight: 400; letter-spacing: -.02em; }
.cf-title em { font-style: italic; }
.cf-lead { color: var(--silver-70); font-size: 15px; line-height: 1.6; margin-top: 10px; }

.cf-topic { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 24px; }
.ctopic {
  border: 1px solid var(--hair); background: rgba(234, 240, 255, .03);
  color: var(--silver-70); border-radius: 100px;
  padding: 9px 17px; font-family: var(--sans); font-size: 13.5px;
  cursor: pointer; transition: .22s var(--ease);
}
.ctopic:hover { border-color: var(--blue-2); color: var(--silver); }
.ctopic.sel {
  border-color: transparent; color: #fff;
  background: linear-gradient(100deg, var(--blue), var(--crimson));
  box-shadow: 0 6px 20px -8px rgba(46, 75, 224, .7);
}

.cf-fields { display: grid; gap: 16px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-fields label {
  display: grid; gap: 8px; position: relative;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--silver-45);
}
.cf-fields input,
.cf-fields textarea {
  background: rgba(234, 240, 255, .05);
  border: 1px solid var(--hair); border-radius: 14px;
  padding: 15px 16px; color: var(--silver);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.cf-fields textarea { resize: vertical; min-height: 150px; }
.cf-fields input::placeholder,
.cf-fields textarea::placeholder { color: var(--silver-45); }
.cf-fields input:focus,
.cf-fields textarea:focus {
  outline: none; border-color: var(--blue-2);
  background: rgba(46, 75, 224, .08);
  box-shadow: 0 0 0 3px rgba(46, 75, 224, .12);
}
.cf-fields input.bad,
.cf-fields textarea.bad { border-color: var(--crimson-2); box-shadow: 0 0 0 3px rgba(225, 29, 72, .12); }
/* keep Chrome's yellow autofill off a navy card */
.cf-fields input:-webkit-autofill,
.cf-fields input:-webkit-autofill:hover,
.cf-fields input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--silver);
  -webkit-box-shadow: 0 0 0 1000px #141a44 inset; box-shadow: 0 0 0 1000px #141a44 inset;
  caret-color: var(--silver); transition: background-color 9999s ease-in-out 0s;
}

.cf-count {
  position: absolute; right: 2px; bottom: -18px;
  font-size: 11px; letter-spacing: .08em; color: var(--silver-45); text-transform: none;
}
.cf-fields label.over .cf-count { color: var(--crimson-2); }

/* honeypot: present for bots, gone for people and screen readers */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-warn { color: var(--crimson-2); font-size: 13.5px; line-height: 1.5; min-height: 20px; margin: 22px 0 4px; }
.cf-submit { width: 100%; justify-content: center; padding: 16px 26px; font-size: 15.5px; }
.cf-submit[disabled] { opacity: .45; pointer-events: none; filter: grayscale(.35); }
.cf-fine { margin-top: 14px; color: var(--silver-45); font-size: 12.5px; line-height: 1.6; text-align: center; }

/* ---------- sent ---------- */
.cf-done { text-align: center; padding: 18px 0 10px; }
.cf-tick {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(100deg, var(--blue), var(--crimson));
  box-shadow: 0 12px 30px -12px rgba(46, 75, 224, .8);
}
.cf-tick svg { width: 26px; height: 26px; }
.cf-done .cf-lead { max-width: 40ch; margin: 10px auto 24px; }
.cf-done .ghost { display: inline-block; }

/* ---------- tablet and phone ---------- */
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-aside { order: 2; gap: 32px; }
  .contact-card { order: 1; }
  .ca-note { max-width: none; }
}
@media (max-width: 640px) {
  .contact-sec { padding: 56px 0 76px; }
  .contact-card { padding: 30px 22px 26px; border-radius: 20px; }
  .cf-row { grid-template-columns: 1fr; gap: 16px; }
  .cf-topic { gap: 7px; margin: 22px 0 20px; }
  .ctopic { padding: 9px 15px; font-size: 13px; }
  .cf-fields textarea { min-height: 132px; }
  /* 16px keeps iOS from zooming the page when a field is focused */
  .cf-fields input, .cf-fields textarea { font-size: 16px; }
  .ca-mail { font-size: 18px; }
}
