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

/* ============== MAIN (HERO + FORM) ============== */
.ct-main {
  position: relative;
  padding: 130px 0 60px;
  overflow: clip;
}
.ct-main__aurora {
  position: absolute; inset: -10% -5% auto;
  height: 60%;
  background: var(--grad-aurora);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.85;
}
.ct-main__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* === LEFT === */
.ct-main__copy h1 {
  font-weight: 280;
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 22px 0 22px;
}
.ct-main__copy h2 {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  font-weight: 400;
  max-width: 520px;
  margin-bottom: 36px;
}

/* Routes */
.ct-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 32px;
}
.ct-route {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, transform .25s;
}
.ct-route:hover {
  transform: translateY(-2px);
  border-color: rgba(10,180,250,0.4);
}
.ct-route__icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(10,180,250,0.15);
  border: 1px solid rgba(10,180,250,0.3);
  color: var(--hilight-light);
  display: grid;
  place-items: center;
}
.ct-route__icon svg { width: 18px; height: 18px; }
.ct-route__body h6 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 3px;
}
.ct-route__body p {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
  margin-bottom: 6px;
}
.ct-route__body small {
  font-size: 11px;
  color: var(--hilight-light);
  font-weight: 500;
}

/* Status pill */
.ct-status__pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 99px;
  box-shadow: var(--glass-edge);
}
.ct-status__pill .dot {
  width: 8px; height: 8px;
  background: #16D680;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(22,214,128,0.6);
}
.ct-status__pill strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.ct-status__pill small {
  font-size: 12px;
  color: var(--text-2);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* === RIGHT: FORM === */
.ct-form-wrap {
  position: sticky;
  top: 100px;
}
.ct-form {
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge), var(--glow-md);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.ct-form__head { margin-bottom: 6px; }
.ct-form__head h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.ct-form__head p {
  font-size: 13px;
  color: var(--text-2);
}
.ct-form__head p strong {
  color: var(--hilight-light);
  font-weight: 600;
}
.ct-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ct-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ct-field > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.ct-field > span em {
  color: var(--text-2);
  font-style: normal;
  font-weight: 400;
}
.ct-field input[type="text"],
.ct-field input[type="email"],
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: var(--text-2);
  opacity: 0.7;
}
.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: rgba(10,180,250,0.6);
  box-shadow: 0 0 0 3px rgba(10,180,250,0.12);
}
.ct-field textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  line-height: 1.5;
}

/* Topic segmented */
.ct-segment {
  display: flex;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  gap: 2px;
}
.ct-segment__btn {
  flex: 1;
  padding: 10px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.ct-segment__btn:hover {
  color: var(--text);
}
.ct-segment__btn.is-active {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: var(--glow-sm);
}

/* Checkbox */
.ct-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.ct-check input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface-glass);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all .15s;
}
.ct-check input[type="checkbox"]:checked {
  background: var(--grad-blue);
  border-color: transparent;
}
.ct-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px; top: 2px;
  width: 5px; height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.ct-form__submit {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}
.ct-form__submit.is-loading .ct-form__label {
  opacity: 0.5;
}

/* Success overlay */
.ct-form__success[hidden] { display: none !important; }
.ct-form__success {
  position: absolute;
  inset: 0;
  background: var(--ink-1);
  border-radius: 24px;
  padding: 50px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  animation: ctFadeIn .35s ease both;
}
.ct-form__success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(22,214,128,0.18);
  border: 1px solid rgba(22,214,128,0.4);
  color: #16D680;
  display: grid;
  place-items: center;
}
.ct-form__success-icon svg { width: 32px; height: 32px; }
.ct-form__success h4 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ct-form__success p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 360px;
}
@keyframes ctFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============== OFFICES ============== */
.ct-offices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.ct-office {
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ct-office__map {
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--surface-glass);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ct-office__map svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.ct-office__body {
  padding: 22px 24px 24px;
}
.ct-office__flag {
  display: inline-block;
  font-size: 22px;
  margin-bottom: 8px;
  filter: saturate(1.1);
}
.ct-office h4 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.ct-office h4 small {
  font-size: 11px;
  color: var(--hilight-light);
  background: rgba(10,180,250,0.15);
  border: 1px solid rgba(10,180,250,0.3);
  padding: 3px 8px;
  border-radius: 99px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ct-office address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 14px;
}

/* ============== EXTRAS (FAQ + SOCIALS) ============== */
.ct-extras__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.ct-extras__grid h3 {
  font-weight: 320;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em;
  margin: 18px 0 28px;
}

.ct-faq { display: flex; flex-direction: column; gap: 10px; }
.ct-faq__item {
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--glass-edge);
}
.ct-faq__item summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ct-faq__item summary::-webkit-details-marker { display: none; }
.ct-faq__item summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 1.6px solid var(--text-2);
  border-bottom: 1.6px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform .2s;
  flex-shrink: 0;
}
.ct-faq__item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.ct-faq__item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* Socials */
.ct-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ct-social {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  box-shadow: var(--glass-edge);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, border-color .25s;
}
.ct-social:hover {
  transform: translateX(3px);
  border-color: rgba(10,180,250,0.4);
}
.ct-social__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.ct-social__icon svg { width: 18px; height: 18px; }
.ct-social--x  .ct-social__icon { background: #000; }
.ct-social--gh .ct-social__icon { background: #181717; }
.ct-social--li .ct-social__icon { background: #0A66C2; }
.ct-social--di .ct-social__icon { background: #5865F2; }
.ct-social__body h6 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.ct-social__body small {
  font-size: 12px;
  color: var(--text-2);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .ct-main__inner { grid-template-columns: 1fr; gap: 48px; }
  .ct-form-wrap { position: static; }
  .ct-routes { grid-template-columns: 1fr 1fr; }
  .ct-offices__grid { grid-template-columns: 1fr; max-width: 540px; margin: 36px auto 0; }
  .ct-extras__grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 700px) {
  .ct-main { padding: 110px 0 30px; }
  .ct-routes { grid-template-columns: 1fr; }
  .ct-form { padding: 24px; }
  .ct-form__row { grid-template-columns: 1fr; }
  .ct-segment { flex-wrap: wrap; }
  .ct-segment__btn { flex: 1 0 calc(50% - 4px); }
}
