/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a2e;
  background: #0a0a14;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .hero-panel-title, .branding-title, .price {
  font-family: 'Outfit', sans-serif;
}

main {
  flex: 1;
}

a {
  color: #c45abf;
  text-decoration: none;
}

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav-logo {
  height: 32px;
  width: auto;
  display: block;
}

.lang-switch {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  transition: all 0.2s;
}

.lang-switch:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 48px 32px;
  text-align: center;
  color: #fff;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 32px;
}

.includes-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  margin-bottom: 32px;
}

.includes-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.includes-box ul {
  list-style: none;
  padding: 0;
}

.includes-box li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  opacity: 0.9;
}

.includes-box li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #4fc3f7;
  font-weight: 700;
}

.price-block {
  margin-bottom: 32px;
}

.price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
}

.price-note {
  display: block;
  font-size: 14px;
  opacity: 0.7;
  margin-top: 4px;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 16px 48px;
  background: #8e2689;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  border: 1px solid rgba(142, 38, 137, 0.6);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}

.cta-button:hover {
  background: rgba(142, 38, 137, 0.45);
  border-color: rgba(142, 38, 137, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(142, 38, 137, 0.25);
}

.cta-button.full-width {
  width: 100%;
}

.cta-button.outline {
  background: transparent;
  border: 2px solid #8e2689;
  color: #8e2689;
}

.cta-button.outline:hover {
  background: rgba(142, 38, 137, 0.45);
  color: #fff;
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Split-Screen Layout */
.split-page {
  display: flex;
  min-height: 100vh;
  position: relative;
  background-image: url('https://sycorax.tritonite.io/miclab');
  background-size: cover;
  background-position: center bottom;
}

.split-image {
  flex: 1;
  position: relative;
}

.split-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.08) 40%, transparent 70%);
  pointer-events: none;
}

.split-image-branding {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.branding-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.5);
}

.branding-title {
  font-size: 32px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.branding-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}

.branding-provider {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 12px;
}

.branding-contact {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  margin-top: 2px;
}

.split-form {
  width: 33.333%;
  flex-shrink: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 0;
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.screen-footer {
  position: absolute;
  bottom: 16px;
  left: 40px;
  z-index: 10;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

/* Hide main footer when split pages have inline footer */
body:has(.split-page) .footer {
  display: none;
}

/* Hero Panel (landing page right side) */
.hero-panel {
  width: 100%;
  max-width: 520px;
  padding: 40px 0;
}

.hero-panel-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 8px;
}

.hero-panel-subtitle {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.hero-panel-description {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 32px;
}

.includes-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.includes-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.includes-card ul {
  list-style: none;
  padding: 0;
}

.includes-card li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.includes-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #c45abf;
  font-weight: 700;
}

.price-block .price {
  color: #fff;
}

.price-block .price-note {
  color: rgba(255,255,255,0.5);
}

.price-vat {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  line-height: 1.5;
}

/* Form Page (fallback for non-split pages) */
.form-page {
  display: flex;
  justify-content: center;
  padding: 48px 16px;
}

.form-container {
  width: 100%;
  max-width: 520px;
  padding: 0;
}

.form-container h1 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.form-subtitle {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.form-group select option {
  background: #1a1a2e;
  color: #fff;
}

.form-group input::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.form-group input.invalid {
  border-color: #f87171;
}

.form-group input.readonly {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
}

.error-msg {
  display: block;
  font-size: 13px;
  color: #f87171;
  margin-top: 4px;
  min-height: 18px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group.half {
  flex: 1;
}

/* Checkbox */
.checkbox-group {
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #8e2689;
}

/* Result Pages (Success/Cancel) */
.result-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 48px 16px;
}

.result-container {
  text-align: center;
  max-width: 480px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e3e8ee;
  padding: 48px 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px;
  background: #d4edda;
  color: #28a745;
}

.result-icon.warning {
  background: #fff3cd;
  color: #856404;
}

.result-container h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.result-subtitle {
  color: #697386;
  margin-bottom: 24px;
}

.order-ref {
  background: #f6f9fc;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.ref-label {
  font-size: 13px;
  color: #697386;
  display: block;
  margin-bottom: 4px;
}

.ref-value {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.result-message {
  color: #697386;
  font-size: 15px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.contact-note {
  color: #697386;
  font-size: 14px;
  margin-top: 24px;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px;
  text-align: center;
}

.footer-brand {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-contact {
  font-size: 13px;
  opacity: 0.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.footer-credit {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  display: none;
}

.footer-credit a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

.screen-footer .footer-credit {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
}

.screen-footer .footer-credit a {
  color: rgba(255, 255, 255, 0.3);
}

.footer-cookie-link {
  display: inline-block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 12px;
  text-decoration: underline;
}

.screen-footer .footer-cookie-link {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

/* RoundTrip Service Test */
.rts-test {
  border: 2px solid #f59e0b;
  max-width: 520px;
}

.rts-badge {
  display: inline-block;
  background: #f59e0b;
  color: #1a1a2e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.rts-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}

.rts-subtitle {
  color: #697386;
  font-size: 15px;
  margin-bottom: 24px;
}

.rts-info {
  text-align: left;
  background: #f6f9fc;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
}

.rts-info p + p {
  margin-top: 12px;
}

.rts-price {
  margin-bottom: 24px;
}

.rts-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #1a1a2e;
}

.rts-currency {
  font-size: 18px;
  color: #697386;
  margin-left: 4px;
}

.rts-disclaimer {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 16px;
}

.rts-results {
  text-align: left;
  margin: 24px 0;
}

.rts-table {
  width: 100%;
  border-collapse: collapse;
}

.rts-table td {
  padding: 10px 12px;
  font-size: 14px;
  border-bottom: 1px solid #e3e8ee;
}

.rts-table td:first-child {
  color: #697386;
  width: 140px;
}

.rts-mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px !important;
  word-break: break-all;
}

/* Sandbox Mode */
.sandbox-badge {
  display: inline-block;
  background: #f59e0b;
  color: #1a1a2e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Responsive — split-screen stacks below 960px */
@media (max-width: 960px) {
  .split-page {
    flex-direction: column;
  }

  .split-image {
    min-height: 280px;
    flex: none;
  }

  .split-form {
    width: 100%;
    min-width: 0;
  }

  .split-image-branding {
    bottom: 20px;
    left: 20px;
  }

  .branding-title {
    font-size: 24px;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .hero-title {
    font-size: 36px;
  }

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

  .price {
    font-size: 36px;
  }

  .hero-content {
    padding: 32px 20px;
  }

  .form-container {
    padding: 24px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .nav {
    padding: 12px 16px;
  }

  .cta-button {
    padding: 14px 32px;
    font-size: 15px;
  }
}
