/* =====================================================
   CONTACT PAGE
   ===================================================== */

/* ---------- Opening (same as the other inner pages) ---------- */
.ct-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 64 * var(--s)) 0 calc(60 * var(--s)); background: linear-gradient(180deg, var(--bg) 0%, #dfe6f3 100%); }
.ct-hero .wrap { position: relative; z-index: 1; }
.ct-title { margin-top: calc(24 * var(--s)); font-weight: 400; font-size: max(calc(104 * var(--s)), 42px); line-height: .8; letter-spacing: -.035em; }
.ct-title .line { display: block; overflow: hidden; padding-block: .1em .06em; margin-block: -.1em -.06em; }
.ct-title .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.ct-lead { margin-top: calc(30 * var(--s)); font-size: max(calc(22 * var(--s)), 16px); line-height: 1.35; color: #3b4150; max-width: calc(900 * var(--s)); }
.ct-lines { position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(31,46,184,.06) 0 1px, transparent 1px calc(80 * var(--s))),
    repeating-linear-gradient(0deg, rgba(31,46,184,.06) 0 1px, transparent 1px calc(80 * var(--s)));
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 60%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 30% 60%, #000 20%, transparent 75%); }

/* ---------- Full-width form + floating details card ---------- */
.ct { padding: calc(40 * var(--s)) 0 calc(130 * var(--s)); }
.ct-wrap { position: relative; }

.ct-form { position: relative; padding: max(calc(70 * var(--s)), 24px) max(calc(80 * var(--s)), 22px); background: #fff; border-radius: 10px; box-shadow: 0 40px 80px -60px rgba(14,20,90,.45); }

.ct-fields { display: grid; gap: calc(30 * var(--s)); }
.ct-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(26 * var(--s)); }
.ct-field { display: grid; gap: 10px; }
.ct-field > span { font-size: max(calc(17 * var(--s)), 15px); color: #3b4150; }
.ct-field em { font-style: normal; color: #8a92a6; font-size: 13px; }
.ct-field input, .ct-field textarea {
  width: 100%; padding: 0 18px; height: max(calc(64 * var(--s)), 52px); border: 1px solid #c9d1e1; border-radius: 6px; background: #fff;
  font: inherit; font-size: max(calc(19 * var(--s)), 16px); color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.ct-field input[dir="ltr"] { text-align: right; }
.ct-field textarea { height: auto; min-height: calc(190 * var(--s)); padding: 16px 18px; resize: vertical; line-height: 1.4; }
.ct-field input:focus, .ct-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,46,184,.14); }
.ct-field.bad input { border-color: #d6455b; }

.ct-send { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.ct-err { color: #d6455b; font-size: 14px; }
.ct-err[hidden] { display: none; }

.ct-done { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 12px; background: #fff; border-radius: 10px; animation: ctIn .6s var(--ease); }
.ct-done[hidden] { display: none; }
.ct-done h2 { font-weight: 400; font-size: max(calc(60 * var(--s)), 30px); line-height: .95; color: var(--blue); }
.ct-done p { color: #3b4150; font-size: 17px; }
.ct-done:focus { outline: none; }
@keyframes ctIn { from { opacity: 0; transform: translateY(10px); } }

/* the violet pop card – same family as .hero-stat on the home page */
.ct-pop {
  position: absolute; z-index: 2; left: calc(80 * var(--s)); bottom: calc(100% - 26px); /* sits in the opening, only its bottom edge touches the form */ width: calc(390 * var(--s)); min-width: 290px;
  padding: calc(34 * var(--s)) calc(32 * var(--s)) calc(30 * var(--s));
  background: var(--violet); color: #fff; border-radius: 10px;
  box-shadow: 0 24px 50px -26px rgba(31,46,184,.7);
  opacity: 0; animation: pop .8s var(--ease) .7s forwards, float 7s ease-in-out 1.5s infinite reverse;
}
.ct-pop ::selection { background: #fff; color: var(--blue); }
.ct-pop-h { font-size: max(calc(30 * var(--s)), 22px); line-height: .95; letter-spacing: -.02em; }
.ct-pop ul { display: grid; gap: calc(18 * var(--s)); }
.ct-pop li { display: grid; gap: 3px; }
.ct-pop li span { font-size: 13px; color: rgba(255,255,255,.72); }
.ct-pop li a, .ct-pop li b { font-weight: 400; font-size: max(calc(21 * var(--s)), 17px); line-height: 1.15; color: #fff; justify-self: start; }
.ct-pop li a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .ct { padding-bottom: 80px; }
  .ct-fields { max-width: none; }
  .ct-row { grid-template-columns: 1fr; }
  .ct-pop { position: relative; left: auto; top: auto; width: auto; min-width: 0; margin-top: 20px; }
}