/* Base + normalization */
*{box-sizing:border-box}
*,*::before,*::after{box-sizing:inherit}
html,body{margin:0;padding:0;background:#000;color:#e9ebee;font-family:system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif}
html{scroll-behavior:smooth;scrollbar-gutter:stable both-edges}

/* Hero Section - Full viewport Video 1 */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

/* Unmute button - larger for better visibility */
.unmute-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 80px;
  padding: 16px 32px;
  border: none;
  border-radius: 35px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: #155bff;
  box-shadow: 0 6px 20px rgba(0,0,0,.6);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  min-width: 140px;
}

.unmute-btn:hover {
  background: #0f4ae0;
  transform: translateX(-50%) translateY(-2px);
}

.unmute-btn.hidden {
  display: none;
}

/* Scroll down button */
.scroll-down {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  padding: 12px 24px;
  border: 2px solid #fff;
  border-radius: 25px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.scroll-down:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(-50%) translateY(-2px);
}

.scroll-down.hidden {
  display: none;
}

/* Main Content - Two Column Layout */
.main-content {
  display: none; /* Hidden until scroll */
  min-height: 100vh;
  min-height: 100svh;
  background: #000;
}

.main-content.show {
  display: block;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 100vh;
  min-height: 100svh;
}

/* Left Column - Videos and Map */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px;
}

.media-section {
  width: 100%;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.media-section.show {
  opacity: 1;
  transform: translateY(0);
}

.media-video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #111;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.65);
}

/* Map Section - Downsized for NM narrow shape */
.map-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.map-image {
  max-width: 50%;
  max-height: 50%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.65);
}

/* Thank you message */
.thank-you-message {
  background: rgba(0,0,0,0.8);
  padding: 16px 24px;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  margin-top: 20px;
}

.thank-you-message.show {
  opacity: 1;
}

/* Intake Panel (Right Column - Half Screen) */
.intake-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  background: #0b0b0d;
  border-left: 1px solid #1f2024;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.bpo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.form-header {
  font-size: 20px;
  font-weight: 800;
  color: #f5f6f7;
  margin-bottom: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.bpo-form input,
.bpo-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #2b2f36;
  border-radius: 8px;
  background: #dde1e6;
  color: #111;
  font-size: 16px; /* Prevent iOS zoom */
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.bpo-form input:focus,
.bpo-form textarea:focus {
  outline: none;
  border-color: #155bff;
}

.bpo-form input::placeholder,
.bpo-form textarea::placeholder {
  color: #515a67;
}

.bpo-form textarea {
  resize: vertical;
  min-height: 40px;
  max-height: 80px;
}

.file-upload-label {
  display: block;
  font-size: 14px;
  color: #a8b0bb;
  margin-bottom: 8px;
}

.file-upload-label input[type="file"] {
  margin-top: 8px;
  padding: 8px;
  background: #17191c;
  color: #ddd;
  border: 1px solid #2b2f36;
  border-radius: 8px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  background: #0d8a3b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.submit-btn:hover {
  background: #0a6b2f;
}

.submit-btn:disabled {
  background: #666;
  cursor: not-allowed;
}

.form-status {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-status.show {
  opacity: 1;
}

.form-status.success {
  background: rgba(13, 138, 59, 0.2);
  color: #0d8a3b;
  border: 1px solid #0d8a3b;
}

.form-status.error {
  background: rgba(220, 38, 38, 0.2);
  color: #dc2626;
  border: 1px solid #dc2626;
}

.form-footer {
  font-size: 12px;
  color: #9aa3ad;
  text-align: center;
  margin-top: 16px;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .intake-panel {
    position: static;
    height: auto;
    border-left: none;
    border-top: 1px solid #1f2024;
  }
  
  .map-image {
    max-width: 70%;
    max-height: 70%;
  }
}

/* iOS specific fixes */
@supports (height: 100dvh) {
  .hero {
    height: 100dvh;
  }
  
  .main-content {
    min-height: 100dvh;
  }
  
  .content-grid {
    min-height: 100dvh;
  }
  
  .intake-panel {
    height: 100dvh;
  }
}

/* Edge browser specific fixes */
@supports (-ms-ime-align: auto) {
  .unmute-btn {
    padding: 18px 36px;
    font-size: 20px;
    min-width: 160px;
  }
}

/* Safe area support for iOS */
@supports (padding: env(safe-area-inset-top)) {
  .hero {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .intake-panel {
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}