/* =========================================================
   CAPTIV CONTACT PAGE — PREMIUM REDESIGN
   Scoped to contact.html only
========================================================= */

:root {
  --contact-blue: #0878ff;
  --contact-cyan: #00c9e8;
  --contact-navy: #041a2d;
  --contact-text: #09213c;
  --contact-muted: #60748f;
  --contact-border: #dce7f3;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* HERO */
.contact-hero,
.contact-page-hero,
body > header.site-header + section:first-of-type {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 350px;
  padding: 66px 7% 58px !important;
  color: #fff !important;
  background:
    radial-gradient(ellipse at 80% 65%, rgba(0, 130, 255, .27), transparent 40%),
    radial-gradient(ellipse at 5% 100%, rgba(0, 205, 170, .16), transparent 38%),
    linear-gradient(115deg, #041522 0%, #052440 58%, #03162c 100%) !important;
}

.contact-hero::before,
.contact-page-hero::before,
body > header.site-header + section:first-of-type::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  right: 7%;
  top: 10%;
  border: 1px solid rgba(0, 195, 255, .24);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(0, 153, 255, .035),
    0 0 0 70px rgba(0, 153, 255, .035),
    inset 0 0 70px rgba(0, 153, 255, .10),
    0 0 100px rgba(0, 153, 255, .13);
  pointer-events: none;
}

.contact-hero::after,
.contact-page-hero::after,
body > header.site-header + section:first-of-type::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 15%;
  top: 20%;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(0, 240, 255, .95) 0 2px, transparent 4px),
    radial-gradient(circle at 65% 35%, rgba(0, 240, 255, .85) 0 2px, transparent 4px),
    radial-gradient(circle at 55% 70%, rgba(0, 240, 255, .8) 0 2px, transparent 4px),
    radial-gradient(circle, rgba(0, 115, 255, .15), transparent 68%);
  box-shadow: inset 0 0 50px rgba(0, 174, 255, .12);
  pointer-events: none;
}

.contact-hero h1,
.contact-page-hero h1 {
  max-width: 850px;
  font-size: clamp(38px, 4.5vw, 64px) !important;
  line-height: 1.08 !important;
  letter-spacing: -1.8px;
  font-weight: 750 !important;
}

.contact-hero p,
.contact-page-hero p {
  max-width: 680px;
  line-height: 1.8;
}

.contact-hero .eyebrow,
.contact-page-hero .eyebrow {
  color: var(--contact-cyan) !important;
  letter-spacing: 2px;
  font-weight: 700;
}

/* CONTACT CONTENT */
.contact-section,
.contact-content,
.contact-main {
  padding: 64px 6% !important;
  background:
    radial-gradient(ellipse at 50% 0%, #edf6ff 0%, transparent 55%),
    #f8fbff !important;
}

.contact-grid,
.contact-layout,
.contact-content-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 24px !important;
  max-width: 1440px;
  margin: 0 auto;
  align-items: stretch;
}

.contact-info,
.contact-details,
.contact-form,
.contact-form-card,
.contact-card {
  min-width: 0;
  border: 1px solid rgba(213, 228, 244, .95) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: 0 15px 45px rgba(18, 61, 104, .06) !important;
  padding: 28px !important;
}

.contact-info h2,
.contact-details h2,
.contact-form h2,
.contact-form-card h2 {
  color: var(--contact-text) !important;
  font-size: 25px !important;
  line-height: 1.25;
}

.contact-info p,
.contact-details p,
.contact-form p,
.contact-form-card p {
  color: var(--contact-muted);
  line-height: 1.75;
}

/* FORM — LIGHT INPUTS */
.contact-form input,
.contact-form select,
.contact-form textarea,
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea,
form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
form select,
form textarea {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d5e1ef !important;
  border-radius: 9px !important;
  color: #102b49 !important;
  background: #fff !important;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form textarea,
.contact-form-card textarea,
form textarea {
  min-height: 115px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus,
form input:focus,
form select:focus,
form textarea:focus {
  border-color: var(--contact-blue) !important;
  box-shadow: 0 0 0 3px rgba(8, 120, 255, .11) !important;
}

.contact-form label,
.contact-form-card label,
form label {
  color: #18324f;
  font-size: 13px;
  font-weight: 650;
}

.contact-form button,
.contact-form-card button,
form button[type="submit"],
form input[type="submit"] {
  min-height: 48px;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(100deg, #0878ff, #0064e8) !important;
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(8, 120, 255, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-form button:hover,
.contact-form-card button:hover,
form button[type="submit"]:hover,
form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(8, 120, 255, .25);
}

/* CONTACT LINKS */
.contact-info a,
.contact-details a,
.contact-card a {
  color: var(--contact-blue);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-info a:hover,
.contact-details a:hover,
.contact-card a:hover {
  text-decoration: underline;
}

/* FOOTER — KEEP THE EXISTING CONTENT */
footer.footer,
footer.site-footer {
  color: #fff;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(0, 92, 180, .18), transparent 38%),
    #031522 !important;
}

footer.footer a,
footer.site-footer a {
  transition: color .2s ease;
}

footer.footer a:hover,
footer.site-footer a:hover {
  color: #fff !important;
}

/* SUBTLE ENTRANCE EFFECT */
@media (prefers-reduced-motion: no-preference) {
  .contact-info,
  .contact-details,
  .contact-form,
  .contact-form-card,
  .contact-card {
    animation: contactCardIn .55s ease both;
  }

  .contact-form,
  .contact-form-card {
    animation-delay: .08s;
  }

  @keyframes contactCardIn {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* MOBILE */
@media (max-width: 800px) {
  .contact-hero,
  .contact-page-hero,
  body > header.site-header + section:first-of-type {
    min-height: auto;
    padding: 48px 6% !important;
  }

  .contact-hero::before,
  .contact-page-hero::before,
  body > header.site-header + section:first-of-type::before {
    width: 260px;
    height: 260px;
    right: -120px;
  }

  .contact-grid,
  .contact-layout,
  .contact-content-grid {
    grid-template-columns: 1fr !important;
  }

  .contact-section,
  .contact-content,
  .contact-main {
    padding: 36px 5% !important;
  }

  .contact-info,
  .contact-details,
  .contact-form,
  .contact-form-card,
  .contact-card {
    padding: 22px !important;
  }
}

/* ===== FIX: MATCH THE ACTUAL CONTACT PAGE CLASSES ===== */

body:has(.contact-layout) .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 40%, rgba(0, 120, 255, .24), transparent 42%),
    radial-gradient(ellipse at 5% 100%, rgba(0, 201, 180, .13), transparent 38%),
    linear-gradient(115deg, #041522, #062b49 65%, #03182b) !important;
  color: #fff !important;
}

body:has(.contact-layout) .page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  right: 8%;
  top: 10%;
  border: 1px solid rgba(0, 201, 255, .35);
  border-radius: 50%;
  box-shadow:
    0 0 0 30px rgba(0, 150, 255, .045),
    0 0 0 65px rgba(0, 150, 255, .035),
    inset 0 0 65px rgba(0, 150, 255, .12),
    0 0 90px rgba(0, 150, 255, .12);
  pointer-events: none;
}

body:has(.contact-layout) .page-hero h1 {
  position: relative;
  max-width: 900px;
  color: #fff !important;
  font-size: clamp(38px, 4.5vw, 64px) !important;
  line-height: 1.08 !important;
  letter-spacing: -1.6px;
}

body:has(.contact-layout) .page-hero p {
  max-width: 700px;
  color: #c5d7e8 !important;
  line-height: 1.8;
}

body:has(.contact-layout) .section {
  background:
    radial-gradient(ellipse at 50% 0%, #edf6ff 0%, transparent 55%),
    #f8fbff !important;
}

body:has(.contact-layout) .contact-layout {
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
  gap: 26px !important;
  align-items: stretch;
}

body:has(.contact-layout) .contact-card {
  padding: 30px !important;
  border: 1px solid #dce7f3 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 16px 45px rgba(18, 61, 104, .07) !important;
  color: #09213c !important;
}

body:has(.contact-layout) .contact-card h2,
body:has(.contact-layout) .contact-card h3 {
  color: #09213c !important;
}

body:has(.contact-layout) .contact-item {
  padding: 16px 0;
  border-bottom: 1px solid #e8eff7;
}

body:has(.contact-layout) .contact-item:last-child {
  border-bottom: 0;
}

body:has(.contact-layout) .contact-item strong {
  display: block;
  margin-bottom: 7px;
  color: #102c49 !important;
}

body:has(.contact-layout) .contact-item a,
body:has(.contact-layout) .contact-item span {
  color: #61758e !important;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body:has(.contact-layout) .contact-item a {
  color: #0878ff !important;
  text-decoration: none;
}

body:has(.contact-layout) .contact-item a:hover {
  text-decoration: underline;
}

body:has(.contact-layout) .contact-form {
  display: grid;
  gap: 16px;
}

body:has(.contact-layout) .contact-form input,
body:has(.contact-layout) .contact-form select,
body:has(.contact-layout) .contact-form textarea {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 13px 15px;
  color: #102b49 !important;
  background: #fff !important;
  border: 1px solid #d5e1ef !important;
  border-radius: 9px !important;
  font: inherit;
}

body:has(.contact-layout) .contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

body:has(.contact-layout) .contact-form input:focus,
body:has(.contact-layout) .contact-form select:focus,
body:has(.contact-layout) .contact-form textarea:focus {
  outline: none;
  border-color: #0878ff !important;
  box-shadow: 0 0 0 3px rgba(8, 120, 255, .12) !important;
}

body:has(.contact-layout) .contact-form button,
body:has(.contact-layout) .contact-form input[type="submit"] {
  min-height: 49px;
  padding: 12px 22px;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(100deg, #0878ff, #0064e8) !important;
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

body:has(.contact-layout) .contact-form button:hover,
body:has(.contact-layout) .contact-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 120, 255, .2);
}

@media (max-width: 800px) {
  body:has(.contact-layout) .contact-layout {
    grid-template-columns: 1fr !important;
  }

  body:has(.contact-layout) .contact-card {
    padding: 22px !important;
  }

  body:has(.contact-layout) .page-hero::after {
    right: -180px;
    top: 15%;
    width: 260px;
    height: 260px;
  }
}


/* ===== CONTACT PAGE: VISIBLE PREMIUM UPGRADE ===== */

body:has(.contact-layout) .page-hero {
  min-height: 390px !important;
  padding: 75px 7% 80px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse at 85% 35%, rgba(0, 128, 255, .30), transparent 35%),
    radial-gradient(ellipse at 15% 100%, rgba(0, 220, 180, .16), transparent 40%),
    linear-gradient(120deg, #031321, #062b49 65%, #04182c) !important;
}

body:has(.contact-layout) .page-hero h1 {
  max-width: 850px !important;
  font-size: clamp(42px, 5vw, 68px) !important;
  letter-spacing: -2px !important;
  line-height: 1.06 !important;
  text-shadow: 0 5px 35px rgba(0, 130, 255, .15);
}

body:has(.contact-layout) .page-hero h1 span {
  color: #08c5e8 !important;
}

body:has(.contact-layout) .page-hero::after {
  width: 370px !important;
  height: 370px !important;
  right: 8% !important;
  top: 8% !important;
  border-color: rgba(0, 204, 255, .5) !important;
  box-shadow:
    0 0 0 25px rgba(0, 153, 255, .06),
    0 0 0 55px rgba(0, 153, 255, .045),
    0 0 90px rgba(0, 153, 255, .15),
    inset 0 0 65px rgba(0, 153, 255, .10) !important;
}

/* More spacious contact section */
body:has(.contact-layout) .section {
  padding: 75px 6% !important;
  background:
    radial-gradient(ellipse at 50% 0%, #eaf5ff, transparent 60%),
    #f7faff !important;
}

body:has(.contact-layout) .contact-layout {
  max-width: 1360px !important;
  margin: 0 auto !important;
  grid-template-columns: .85fr 1.15fr !important;
  gap: 30px !important;
  align-items: start !important;
}

/* Contact information card */
body:has(.contact-layout) .contact-layout > .contact-card:first-child {
  padding: 36px !important;
  border: 1px solid #dbe9f7 !important;
  border-radius: 22px !important;
  background: linear-gradient(150deg, #fff, #f6faff) !important;
  box-shadow: 0 20px 60px rgba(13, 56, 100, .09) !important;
}

body:has(.contact-layout) .contact-item {
  position: relative;
  margin-top: 12px;
  padding: 19px 16px !important;
  border: 1px solid #e5edf7 !important;
  border-radius: 12px;
  background: #fff;
  transition: transform .22s ease, border-color .22s ease,
              box-shadow .22s ease;
}

body:has(.contact-layout) .contact-item:hover {
  transform: translateY(-3px);
  border-color: #a9d0ff !important;
  box-shadow: 0 10px 25px rgba(8, 120, 255, .08);
}

body:has(.contact-layout) .contact-item strong {
  font-size: 14px !important;
  margin-bottom: 8px !important;
}

/* Form card */
body:has(.contact-layout) .contact-layout > .contact-card:last-child {
  padding: 36px !important;
  border: 1px solid #dbe9f7 !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 20px 60px rgba(13, 56, 100, .09) !important;
}

body:has(.contact-layout) .contact-form {
  gap: 19px !important;
}

body:has(.contact-layout) .contact-form input,
body:has(.contact-layout) .contact-form select,
body:has(.contact-layout) .contact-form textarea {
  min-height: 52px !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  border-color: #d6e3f1 !important;
  background: #fbfdff !important;
  font-size: 14px !important;
}

body:has(.contact-layout) .contact-form input:focus,
body:has(.contact-layout) .contact-form select:focus,
body:has(.contact-layout) .contact-form textarea:focus {
  background: #fff !important;
  border-color: #0878ff !important;
  box-shadow: 0 0 0 4px rgba(8, 120, 255, .10) !important;
}

body:has(.contact-layout) .contact-form textarea {
  min-height: 145px !important;
}

body:has(.contact-layout) .contact-form button[type="submit"],
body:has(.contact-layout) .contact-form input[type="submit"] {
  width: 100% !important;
  min-height: 54px !important;
  border-radius: 10px !important;
  background: linear-gradient(100deg, #0878ff, #005fe0) !important;
  box-shadow: 0 9px 24px rgba(8, 120, 255, .22) !important;
}

body:has(.contact-layout) .contact-form button[type="submit"]:hover,
body:has(.contact-layout) .contact-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 30px rgba(8, 120, 255, .30) !important;
}

@media (max-width: 800px) {
  body:has(.contact-layout) .page-hero {
    min-height: 300px !important;
    padding: 50px 6% !important;
  }

  body:has(.contact-layout) .page-hero h1 {
    font-size: clamp(36px, 9vw, 48px) !important;
  }

  body:has(.contact-layout) .page-hero::after {
    right: -220px !important;
    top: 10% !important;
    width: 280px !important;
    height: 280px !important;
  }

  body:has(.contact-layout) .section {
    padding: 35px 5% !important;
  }

  body:has(.contact-layout) .contact-layout {
    grid-template-columns: 1fr !important;
  }

  body:has(.contact-layout) .contact-layout > .contact-card {
    padding: 22px !important;
  }
}

