/* ==========================================================================
   Contact page (/contact). Scoped to #contact-page.
   human.css forces paragraph colours in light sections with !important, and
   luxury.css forces a border + shadow on every focused input; both are
   overridden here with ID-scoped rules. The form's field ids are the ones the
   home page and hero forms prefill (?email=…&service=…).
   ========================================================================== */

#contact-page {
  display: block;
  background: #F5F8FD;
  font-family: var(--font-sans);
  color: #0B2239;
}

#contact-page .ct-inner {
  max-width: 1320px;
}

/* ---------------------------------------------------------------- Shared parts */
#contact-page .ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--sec-btn-h);
  padding: 0 26px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

#contact-page .ct-btn svg {
  flex: none;
  width: 18px;
  height: 18px;
}

#contact-page .ct-btn--primary {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  box-shadow: 0 14px 28px -14px rgba(37, 99, 235, 0.85);
}

#contact-page .ct-btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF;
}

#contact-page .ct-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

#contact-page .ct-btn--white {
  background: #FFFFFF;
  color: #0B2239;
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.6);
}

#contact-page .ct-btn--white:hover {
  background: #EFF6FF;
}

#contact-page .ct-btn--soft {
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #0B2239;
}

#contact-page .ct-btn[disabled] {
  cursor: progress;
  opacity: 0.75;
}

#contact-page .ct-btn:focus-visible,
#contact-page a:focus-visible,
#contact-page button:focus-visible {
  outline: 3px solid #60A5FA;
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- Top band */
#contact-page .ct-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 52px 0 88px;
  background:
    radial-gradient(45% 70% at 80% 45%, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0) 70%),
    linear-gradient(120deg, #061633 0%, #0A2350 55%, #0D2B63 100%);
  color: #FFFFFF;
}

/* thin flowing lines, bottom left and right */
.ct-top-lines {
  position: absolute;
  z-index: -1;
  inset: auto 0 0 0;
  width: 100%;
  height: 70%;
  pointer-events: none;
}

/* curved bottom edge into the page */
.ct-top-curve {
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 48px;
  pointer-events: none;
}

.ct-top-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

#contact-page .ct-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

#contact-page .ct-crumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #CBD5E1;
}

#contact-page .ct-crumbs li + li::before {
  content: "›";
  color: #94A3B8;
}

#contact-page .ct-crumbs a {
  color: #E2E8F0;
  text-decoration: none;
}

#contact-page .ct-crumbs a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

#contact-page .ct-top h1 {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(36px, calc(2.4vw + 18px), 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

#contact-page .ct-top h1 span {
  display: block;
  color: #38BDF8;
}

#contact-page .ct-top p.ct-lead {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #E2E8F0 !important;
}

.ct-top .ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.ct-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: #EEF4FF;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.75), 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.ct-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------- Connect panel + form */
#contact-page .ct-main {
  padding: 36px 0 0;
}

.ct-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 28px;
}

/* left: navy panel */
#contact-page .ct-connect {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 28px 28px;
  border-radius: 24px;
  background:
    radial-gradient(60% 40% at 100% 0%, rgba(56, 189, 248, 0.16), rgba(56, 189, 248, 0) 70%),
    radial-gradient(70% 40% at 0% 100%, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0) 70%),
    linear-gradient(160deg, #0A2350 0%, #071A38 100%);
  box-shadow: 0 30px 60px -36px rgba(7, 24, 39, 0.8);
  color: #FFFFFF;
}

.ct-accent {
  display: block;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: #38BDF8;
}

#contact-page .ct-connect h2 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: clamp(26px, calc(0.9vw + 17px), 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

#contact-page .ct-connect p.ct-connect-sub {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #CBD5E1 !important;
}

.ct-ways {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

#contact-page .ct-way {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#contact-page a.ct-way:hover {
  border-color: rgba(96, 165, 250, 0.6);
  background: rgba(255, 255, 255, 0.09);
}

.ct-way-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3B82F6 0%, #1D4ED8 100%);
  color: #FFFFFF;
}

.ct-way-icon--wa {
  background: linear-gradient(145deg, #34D399 0%, #16A34A 100%);
}

.ct-way-icon svg {
  width: 22px;
  height: 22px;
}

#contact-page .ct-way strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

#contact-page .ct-way span.ct-way-text {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.45;
  color: #CBD5E1;
}

#contact-page .ct-way span.ct-way-note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #94A3B8;
}

.ct-way-go {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

.ct-way-go svg {
  width: 16px;
  height: 16px;
}

/* right: form card */
#contact-page .ct-form-box {
  padding: 34px 36px 32px;
  border: 1px solid #E3EBF6;
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 30px 60px -40px rgba(11, 34, 57, 0.45);
  scroll-margin-top: 110px;
}

#contact-page .ct-form-box h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, calc(0.9vw + 17px), 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #071827;
}

#contact-page .ct-form-box p.ct-form-sub {
  margin: 8px 0 0;
  font-size: 15.5px;
  color: #475569 !important;
}

.ct-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-top: 24px;
}

.ct-form .ct-wide {
  grid-column: 1 / -1;
}

#contact-page .ct-label {
  display: block;
  margin-bottom: 7px;
  font-size: 14.5px;
  font-weight: 700;
  color: #0B2239;
}

.ct-req {
  color: #DC2626;
}

.ct-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 1.5px solid #D5DFEC;
  border-radius: 12px;
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ct-field:hover {
  border-color: #A9BCD6;
}

.ct-field:focus-within {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.ct-field.is-invalid {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.ct-field-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 19px;
  height: 19px;
  color: #64748B;
  transform: translateY(-50%);
  pointer-events: none;
}

.ct-field--area .ct-field-icon {
  top: 16px;
  transform: none;
}

#contact-page .ct-field input,
#contact-page .ct-field select,
#contact-page .ct-field textarea {
  width: 100%;
  min-width: 0;
  height: 47px;
  padding: 0 14px 0 44px;
  border: 0 !important;
  border-radius: 12px;
  background: transparent;
  box-shadow: none !important;
  outline: none;
  color: #0B2239;
  font: inherit;
  font-size: 15.5px;
}

#contact-page .ct-field input::placeholder,
#contact-page .ct-field textarea::placeholder {
  color: #8494A9;
}

#contact-page .ct-field select {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  background: no-repeat right 14px center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  cursor: pointer;
}

#contact-page .ct-field select:invalid,
#contact-page .ct-field select.is-empty {
  color: #8494A9;
}

#contact-page .ct-field select option {
  color: #0B2239;
}

#contact-page .ct-field textarea {
  height: auto;
  min-height: 112px;
  padding-top: 13px;
  padding-bottom: 13px;
  line-height: 1.55;
  resize: vertical;
}

/* phone: country code + number in one box */
#contact-page .ct-field--phone select {
  flex: none;
  width: 118px;
  padding-right: 28px;
  background-position: right 8px center;
}

.ct-phone-rule {
  flex: none;
  width: 1px;
  height: 24px;
  background: #D5DFEC;
}

#contact-page .ct-field--phone input {
  padding-left: 14px;
}

#contact-page p.ct-error {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #B91C1C !important;
}

/* consent */
.ct-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

#contact-page .ct-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #2563EB;
  box-shadow: none !important;
}

#contact-page .ct-consent input:focus-visible {
  outline: 3px solid #60A5FA;
  outline-offset: 2px;
}

#contact-page .ct-consent a {
  color: #1D4ED8;
  font-weight: 600;
}

.ct-submit-row {
  display: flex;
  justify-content: flex-end;
}

#contact-page .ct-form-alert {
  padding: 12px 14px;
  border: 1px solid #FECACA;
  border-radius: 12px;
  background: #FEF2F2;
  color: #991B1B;
  font-size: 14.5px;
  line-height: 1.5;
}

#contact-page .ct-form-alert a {
  color: #991B1B;
  font-weight: 700;
}

.ct-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: ct-spin 0.8s linear infinite;
}

@keyframes ct-spin {
  to { transform: rotate(360deg); }
}

/* success state */
#contact-page .ct-success {
  margin-top: 24px;
  padding: 32px 24px;
  border: 1px solid #BBF7D0;
  border-radius: 18px;
  background: linear-gradient(160deg, #F0FDF4 0%, #ECFDF5 100%);
  text-align: center;
  outline: none;
}

.ct-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: #16A34A;
  color: #FFFFFF;
}

.ct-success-icon svg {
  width: 32px;
  height: 32px;
}

#contact-page .ct-success h3 {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #071827;
}

#contact-page .ct-success p {
  max-width: 460px;
  margin: 8px auto 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: #334155 !important;
}

.ct-success .ct-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

/* ---------------------------------------------------------------- Promises row */
#contact-page .ct-promises {
  padding: calc(var(--sec-pad) * 0.7) 0 0;
}

.ct-promise-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

#contact-page .ct-promise-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 22px;
}

#contact-page .ct-promise-list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #D9E3F0;
}

.ct-promise-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #E3EDFC;
  color: #1D4ED8;
}

.ct-promise-icon svg {
  width: 28px;
  height: 28px;
}

#contact-page .ct-promise-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #071827;
}

#contact-page .ct-promise-list span.ct-promise-text {
  display: block;
  margin-top: 4px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #475569;
}

/* ---------------------------------------------------------------- Closing band */
#contact-page .ct-cta-wrap {
  padding: calc(var(--sec-pad) * 0.7) 0 var(--sec-pad);
}

.ct-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 36px 48px;
  border-radius: 26px;
  background:
    radial-gradient(50% 120% at 100% 100%, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0) 70%),
    linear-gradient(120deg, #0B1F4D 0%, #12307A 60%, #1E40AF 100%);
  box-shadow: 0 30px 60px -36px rgba(7, 24, 39, 0.8);
}

#contact-page .ct-cta h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, calc(1vw + 16px), 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

#contact-page .ct-cta h2 span {
  display: block;
  color: #38BDF8;
}

.ct-cta-rule {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, 0.3);
}

#contact-page .ct-cta p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #E2E8F0 !important;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1199px) {
  .ct-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #contact-page .ct-connect {
    order: 2;
  }

  .ct-ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ct-promise-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }

  #contact-page .ct-promise-list li:nth-child(3)::before {
    display: none;
  }

  .ct-cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ct-cta-rule {
    display: none;
  }

  .ct-cta p {
    grid-column: 1;
  }

  .ct-cta .ct-btn {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 959px) {
  .ct-top-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .ct-visual {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  #contact-page .ct-top {
    padding: 36px 0 64px;
  }

  #contact-page .ct-top p.ct-lead {
    font-size: 16.5px;
  }

  .ct-top .ct-actions .ct-btn {
    width: 100%;
  }

  #contact-page .ct-main {
    padding-top: 24px;
  }

  #contact-page .ct-form-box {
    padding: 26px 18px 22px;
  }

  .ct-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-submit-row .ct-btn {
    width: 100%;
  }

  #contact-page .ct-connect {
    padding: 28px 18px 20px;
  }

  .ct-ways {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-promise-list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  #contact-page .ct-promise-list li {
    padding: 16px 4px;
  }

  #contact-page .ct-promise-list li + li::before,
  #contact-page .ct-promise-list li:nth-child(3)::before {
    display: block;
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .ct-cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 28px 22px;
  }

  .ct-cta .ct-btn {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-spinner {
    animation-duration: 2.4s;
  }
}

@media (prefers-reduced-motion: no-preference) {
  #contact-page .ct-btn--primary:hover {
    transform: translateY(-2px);
  }
}
