/* Import Montserrat for body text readability */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

@font-face {
  font-family: "Signal";
  src: url("./fonts/Signal-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Signal";
  src: url("./fonts/Signal-Normal.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Signal";
  src: url("./fonts/Signal-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Signal";
  src: url("./fonts/Signal-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Signal";
  src: url("./fonts/Signal-Heavy.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Refined Company Palette */
  --blue-dark: #486e8d;
  --blue-primary: #486e8d;
  --blue-glow: #b3c7d9 ;
  --indigo-accent: #b3c7d9 ;
  --white: #ffffff;
  --paper: #efeeea;
  
  /* Glassmorphism Colors */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-focus: rgba(255, 255, 255, 0.18);

  /* Text Colors */
  --text-main: rgba(255, 255, 255, 0.95);
  --text-soft: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Layout */
  --page-width: 1200px;
  --content-width: 880px;
  --side-pad: clamp(24px, 5vw, 80px);
  --top-pad: clamp(40px, 8vw, 100px);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--blue-dark);
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif; /* Primary body font */
  font-weight: 300;
  color: var(--text-main);
  background: var(--blue-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Stunning Page Background */
.page {
  width: min(var(--page-width), 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: var(--top-pad) var(--side-pad) 80px;
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(circle at 10% 20%, rgba(72, 110, 141, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(179, 199, 217, 0.1) 0%, transparent 40%),
    var(--blue-dark);
}

/* Subtle animated glow behind content */
.page::before {
  content: "";
  position: absolute;
  top: -10%; left: -10%;
  width: 120%; height: 120%;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.05), transparent 50%);
  pointer-events: none;
}

.page > * {
  width: min(var(--content-width), 100%);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* Header & Logo */
.header, .form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: clamp(30px, 5vw, 60px);
}

.logo, .brand-logo {
  width: min(280px, 50vw);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.02);
}

.step, .step-count {
  font-family: "Signal", sans-serif;
  font-size: clamp(12px, 1.2vw, 15px);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--indigo-accent);
  opacity: 0.8;
}

/* Progress Bar */
.progress, .progress-track {
  position: relative;
  height: 2px;
  margin-bottom: clamp(50px, 8vw, 90px);
  background: var(--glass-border);
}

.progress::before, .progress-track::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 14%;
  background: var(--white);
  box-shadow: 0 0 15px var(--white);
  transition: width 0.6s ease;
}

.back, .back-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 50px;
  color: var(--text-soft);
  font-family: "Signal", sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.back:hover {
  color: var(--white);
  gap: 18px;
}

/* Typography - The "Stunning" Part */
.eyebrow {
  font-family: "Signal", sans-serif;
  margin: 0 0 20px;
  color: var(--indigo-accent);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1 {
  font-family: "Signal", sans-serif;
  max-width: 850px;
  margin: 0 0 24px;
  color: var(--white);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h2 {
  font-family: "Signal", sans-serif;
  margin: 0 0 20px;
  color: var(--white);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 300;
  line-height: 1.2;
  text-transform: uppercase;
}

p {
  max-width: 680px;
  margin: 0 0 40px;
  color: var(--text-soft);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
}

/* Form Styling - Glassmorphism */
.form {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
}

label, legend {
  font-family: "Signal", sans-serif;
  display: block;
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

input, select, textarea {
  width: 100%;
  min-height: 60px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  padding: 0 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 300;
  transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--glass-focus);
  border-color: var(--indigo-accent);
  box-shadow: 0 0 0 4px rgba(179, 199, 217, 0.1);
}

textarea {
  min-height: 160px;
  padding: 20px;
}

/* Grid System for inputs */
.two-column, .name-fields, .field-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .two-column, .name-fields, .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Custom Checkbox Styling */
.checkbox {
  display: grid;
  grid-template-columns: 22px auto;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.checkbox:hover {
  color: var(--white);
}

.checkbox input {
  width: 20px;
  height: 20px;
  min-height: auto;
  accent-color: var(--white);
  cursor: pointer;
}

/* Call to Action Button */
button, .button, [type="submit"] {
  position: relative;
  width: fit-content;
  min-width: 280px;
  min-height: 64px;
  background: var(--white);
  color: var(--blue-dark);
  border: none;
  padding: 0 60px;
  font-family: "Signal", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  overflow: hidden;
  z-index: 1;
}

button::after, .button::after {
  content: "→";
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  transition: var(--transition-smooth);
}

button:hover {
  background: var(--indigo-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

button:hover::after {
  right: 20px;
}

button:active {
  transform: translateY(-1px);
}

/* Footer Elements */
.save-later {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.save-later:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-line {
  margin-top: 80px;
  text-align: center;
  font-family: "Signal", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Video Placeholder */
.video-placeholder {
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  min-height: 300px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
  .header, .form-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  h1 {
    font-size: 36px;
  }

  button, .button, [type="submit"] {
    width: 100%;
    padding: 0;
  }
  
  .page {
    --top-pad: 40px;
  }
}

/* Utility: Honeypot */
.honeypot {
  position: absolute;
  left: -9999px;
}