/* contact.css
   - Uses the same global theme as index.html (main.css/nav/footer/etc.)
   - Adds ONLY the page-specific styles for Contact page
   - Includes fixes so light section text stays dark + form card matches screenshot
*/

/* ================================
   HERO tweaks (dark hero like About screenshot)
   ================================ */

/* .hero--contact .hero-content {
  max-width: 760px;
}

.hero--contact .section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(120, 255, 190, 0.9);
  margin-bottom: 14px;
}

.hero--contact h1 {
  margin: 10px 0 12px;
}

.hero--contact .subtitle {
  max-width: 680px;
} */
.contact-hero {
  padding-top: 54px;
  min-height: auto;
  /* was 120px – closer to header */
  padding-bottom: 80px;
  /* reduce vertical height */

  overflow: hidden;
  display: flex;
  align-items: center;

  justify-content: flex-start;
  justify-content: flex-start;
  background:
    radial-gradient(1400px 700px at 30% 30%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #0a1220 0%, #08101a 100%);
  
  position: relative;
}

/* Redesigned Premium Decoration pinned to right edge */
.contact-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 800px;
  height: 800px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1.5'%3E%3Cpath d='M150 100 l40 -23 l40 23 v46 l-40 23 l-40 -23z'/%3E%3Cpath d='M350 180 l60 -34 l60 34 v68 l-60 34 l-60 -34z'/%3E%3Cpath d='M550 100 l40 -23 l40 23 v46 l-40 23 l-40 -23z'/%3E%3Cpath d='M200 350 l80 -46 l80 46 v92 l-80 46 l-80 -46z'/%3E%3Cpath d='M500 380 l100 -57 l100 57 v114 l-100 57 l-100 -57z' /%3E%3Cpath d='M600 580 l60 -34 l60 34 v68 l-60 34 l-60 -34z'/%3E%3C/g%3E%3Cg fill='none' stroke='rgba(98,230,165,0.4)' stroke-width='2'%3E%3Cpath d='M480 220 l40 -23 l40 23 v46 l-40 23 l-40 -23z'/%3E%3Cpath d='M380 420 l30 -17 l30 17 v34 l-30 17 l-30 -17z'/%3E%3Cpath d='M620 350 l30 -17 l30 17 v34 l-30 17 l-30 -17z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

/* Subtle Divider at bottom of hero */
.contact-hero-divider {
  position: absolute;
  bottom: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(110, 231, 168, 0.55), transparent);
  box-shadow: 0 0 8px rgba(110, 231, 168, 0.75);
  z-index: 10;
}

.contact-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.contact-hero-right {
  position: relative;
  height: 480px;
}


/* FORCE hero container to align to page left */
.contact-hero .contact-hero-inner {
  margin-left: 0 !important;
  margin-right: auto !important;
}


.contact-hero-left {
  text-align: left;
  max-width: 720px;
  /* keeps text readable */
}


.contact-eyebrow {
  margin-top: 20px;
  color: #62e6a5;
  font-weight: 630;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


.contact-hero-title {
  font-size: clamp(56px, 6vw, 80px);
  font-weight: 750;
  line-height: 1.05;
  color: #ffffff;
  margin: 16px 0;
}


.contact-hero-subtitle {
  max-width: 620px;
  font-size: 22px;
  line-height: 1.55;
  margin: 0 0 26px;
  color: rgba(234, 240, 255, 0.78);
  position: relative;
  z-index: 5;
}


/* ================================
   CONTACT SECTION (light background + two columns)
   ================================ */

.contact-section {
  padding: 80px 0;
  background: transparent !important;
}

.contact-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.contact-call {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

/* Updated for Dark Theme */
.contact-section,
.contact-section * {
  color: #eaf0ff;
}

.contact-copy h2 {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  margin: 0 0 14px;
}

.contact-lead {
  color: rgba(234, 240, 255, 0.8) !important;
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.contact-bullets {
  margin: 12px 0 18px;
  padding-left: 20px;
  line-height: 1.65;
  color: rgba(234, 240, 255, 0.85) !important;
}

.contact-bullets li {
  margin: 6px 0;
}

.contact-footnote {
  margin-top: 14px;
  color: rgba(11, 18, 32, 0.86) !important;
  font-size: 18px;
}

/* ================================
   FORM CARD (dark card + gray-blue inputs)
   ================================ */

.contact-form-card {
  background: linear-gradient(180deg, #1c2434 0%, #0f1726 100%);
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.contact-form {
  display: block;
}

/* GRID */

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .full {
  grid-column: 1 / -1;
}

/* LABELS */

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label span {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  font-size: 13px;
}

/* INPUTS */

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;

  background: #bbc1cb;
  border: none;
  color: #0b1220;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 220px;
  resize: vertical;
}

/* FOCUS */

.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(98, 230, 165, 0.35);
}

/* SUBMIT BUTTON */

.contact-submit {
  margin-top: 20px;
  width: 100%;
  background: #ffffff;
  color: #0b1220;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.contact-submit:hover {
  transform: translateY(-1px);
}

.contact-submit:active {
  transform: translateY(0);
}



/* ===============================
   CONTACT SUCCESS MODAL
   =============================== */

.contact-success-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.contact-success-modal.active {
  display: block;
}

.contact-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 24, 0.75);
  backdrop-filter: blur(4px);
}

.contact-success-card {
  position: relative;
  z-index: 2;

  max-width: 420px;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);

  background: linear-gradient(
    180deg,
    rgba(26, 40, 64, 0.95),
    rgba(16, 26, 44, 0.95)
  );

  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2.5rem;

  text-align: center;
  
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.04);
  animation: successPop 0.35s ease;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: translateY(-45%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;

  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), var(--accent));
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2rem;
  font-weight: 800;
}

.contact-success-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.contact-success-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.success-close-btn {
  margin-top: 2rem;

  padding: 0.75rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);

  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;

  transition: all 0.25s ease;
}

.success-close-btn:hover {
  background: rgba(0, 102, 255, 0.15);
  border-color: var(--primary);
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 980px) {
  .contact-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .contact-hero-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }

  .contact-hero-right {
    height: 200px;
    margin-top: -30px;
  }

  .contact-hero-title {
    font-size: 48px;
  }

  .contact-call {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .contact-copy h2 {
    font-size: 38px;
  }

  .contact-form-card {
    padding: 30px;
  }

  .contact-submit {
    padding: 12px 14px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .contact-hero-title {
    font-size: 40px;
  }

  .contact-hero-subtitle {
    font-size: 17px;
  }

  .contact-hero-right {
    height: 160px;
  }

  .contact-copy h2 {
    font-size: 32px;
  }

  .contact-lead,
  .contact-footnote {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .contact-hero {
    padding-top: 80px;
    padding-bottom: 20px;
  }

  .contact-hero-title {
    font-size: 32px;
  }

  .contact-hero-subtitle {
    font-size: 16px;
    line-height: 1.5;
  }

  .contact-eyebrow {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .contact-hero-right {
    height: 120px;
    margin-top: -30px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy h2 {
    font-size: 28px;
  }

  .contact-lead,
  .contact-footnote {
    font-size: 16px;
  }

  .contact-bullets {
    font-size: 15.5px;
  }

  .contact-section {
    padding: 54px 0;
  }

  .contact-form-card {
    padding: 22px;
    border-radius: 14px;
  }

  .contact-form label span {
    font-size: 12px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px 12px;
    font-size: 13px;
  }

  .contact-submit {
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 368px) {
  .contact-hero-title {
    font-size: 26px;
  }

  .contact-hero-subtitle {
    font-size: 14.5px;
  }

  .contact-hero-right {
    height: 80px;
    margin-top: -40px;
  }

  .contact-copy h2 {
    font-size: 24px;
  }

  .contact-lead,
  .contact-footnote {
    font-size: 15px;
  }

  .contact-bullets {
    font-size: 14.5px;
  }

  .contact-form-card {
    padding: 16px;
    border-radius: 12px;
  }

  .contact-form-grid {
    gap: 12px;
  }

  .contact-form label span {
    font-size: 11px;
    gap: 4px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 8px 10px;
    font-size: 12px;
  }

  .contact-submit {
    padding: 10px;
    font-size: 13px;
    margin-top: 12px;
  }
  .contact-success-card {
    width: 90%;
    max-width: 340px;
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
  }

  .success-icon {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  .contact-success-card h3 {
    font-size: 1.3rem;
  }

  .contact-success-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .contact-hero-inner {
    margin-left: 0;
    padding: 0 20px;
  }

  .contact-hero-right::before {
    transform: translateX(0);
    /* prevent overflow */
  }
}

@media (min-width: 1200px) {
  .contact-hero-inner {
    padding-left: 72px;
  }
}
