/* Dwara Infras — Minimal Pure White One-By-One Form */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #475569;
  
  --border-light: #e2e8f0;
  --border-active: #0f172a;
  --border-focus: #0f172a;
  
  --btn-primary-bg: #0f172a;
  --btn-primary-text: #ffffff;
  
  --btn-secondary-bg: #ffffff;
  --btn-secondary-text: #0f172a;
  --btn-secondary-border: #cbd5e1;
  
  --opt-selected-bg: #f8fafc;
  --opt-selected-border: #0f172a;
  
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --error-text: #b91c1c;
  
  --radius: 8px;
  --transition: all 0.15s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  box-shadow: none !important; /* Strictly no dropshadows */
}

html, body {
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 1. Header & Progress Bar */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.2px;
  text-align: center;
}

.progress-track {
  width: 100%;
  height: 2px;
  background: var(--border-light);
}

.progress-bar {
  height: 100%;
  background: var(--text-main);
  transition: width 0.25s ease-out;
}

/* 1.5 Carousel Viewport (Full Width, No Side Space Waste) */
.carousel-viewport {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 1.95 / 1;
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 0; /* Fully use left and right space */
  margin: 0;
  background: #ffffff;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 2. Main Page Container */
.page-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 36px 20px 56px;
}

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

/* 3. Error Banner (Flat, No Shadow) */
.error-banner {
  display: none;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.error-banner.show {
  display: block;
}

/* 4. Step Panes (One-By-One Question Flow) */
.step-pane {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.step-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.step-question {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
  cursor: pointer;
  user-select: none;
}

/* 5. Inputs (Flat, Clean, Mobile Friendly) */
.input-group {
  margin-bottom: 24px;
}

.text-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  color: var(--text-main);
  outline: none;
  cursor: text;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  transition: var(--transition);
}

.text-input:focus {
  border-color: var(--border-focus);
}

.text-input::placeholder {
  color: #94a3b8;
}

/* Phone Input Box */
.phone-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: #ffffff;
  transition: var(--transition);
}

.phone-box:focus-within {
  border-color: var(--border-focus);
}

.country-code {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  border-right: 1px solid var(--border-light);
  background: #f8fafc;
  user-select: none;
}

.phone-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-main);
  outline: none;
  cursor: text;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

.phone-input::placeholder {
  color: #94a3b8;
}

/* 6. Option Buttons List (Flat, Clear, No Icons) */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.option-button {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
  outline: none;
}

.option-button:hover {
  border-color: #94a3b8;
  background: #fcfcfc;
}

.option-button.selected {
  background: var(--opt-selected-bg);
  border-color: var(--opt-selected-border);
  border-width: 1.5px;
}

.opt-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

/* 7. Action Row (Buttons) */
.action-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  flex: 1;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: 1px solid var(--btn-primary-bg);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  min-height: 48px; /* Mobile touch standard */
}

.btn-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
}

.btn-primary:active {
  background: #000000;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 1px solid var(--btn-secondary-border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--text-main);
}

/* 8. Success Screen (Clean, Flat, Pure White) */
.success-view {
  text-align: center;
  padding: 36px 16px;
}

.success-badge {
  display: inline-block;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid var(--border-light);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.success-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.success-message {
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

/* 9. Footer */
.site-footer {
  border-top: 1px solid var(--border-light);
  padding: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: #ffffff;
}

/* Mobile Optimizations */
@media (max-width: 680px) {
  .carousel-viewport {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2.15 / 1;
    max-height: 165px;
    margin: 0 auto;
  }
  .page-main {
    padding: 16px 16px 24px;
  }
  .step-question {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.35;
  }
  .input-group {
    margin-bottom: 16px;
  }
  .text-input,
  .phone-input {
    padding: 13px 15px;
    font-size: 16px;
  }
  .country-code {
    padding: 13px 15px;
  }
  .option-button {
    padding: 14px 16px;
  }
  .action-row {
    margin-top: 0;
  }
  .btn-primary,
  .btn-secondary {
    padding: 13px 16px;
    min-height: 46px;
  }
}

/* Hide any Netlify Injected Badge or Drawer Elements */
iframe[src*="netlify"],
iframe[id*="netlify"],
iframe[class*="netlify"],
[data-netlify-drawer],
#netlify-badge,
.netlify-badge,
.netlify-feedback-button,
div[class*="netlify"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}

