/* ============================================
   Horse Feed Calculator - Schneider Saddlery
   Brand Colors: Navy #1B2A4A, Red #C41E3A
   ============================================ */

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

:root {
  --navy: #1B2A4A;
  --navy-light: #2a3f6b;
  --navy-dark: #111d35;
  --red: #C41E3A;
  --red-hover: #a8182f;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F5F5F5;
  --medium-gray: #E0E0E0;
  --border-gray: #D0D0D0;
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #666666;
  --success: #28A745;
  --warning: #FFC107;
  --info: #17A2B8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-main: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--red-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.5px;
}
.top-bar a {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}
.top-bar a:hover {
  color: var(--white);
}

/* --- Header --- */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.logo-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.header-nav a:hover {
  color: var(--white);
}

.btn-header {
  background: var(--red);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition);
}
.btn-header:hover {
  background: var(--red-hover);
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 60px 24px 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196,30,58,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(196,30,58,0.2);
  color: rgba(255,255,255,0.95);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(196,30,58,0.3);
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--red);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 10px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--medium-gray);
  padding: 16px 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-icon {
  font-size: 1.1rem;
  color: var(--success);
}

/* --- Calculator Section --- */
.calculator-section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
}

/* --- Calculator Card --- */
.calculator-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-progress {
  display: flex;
  background: var(--light-gray);
  border-bottom: 1px solid var(--medium-gray);
}

.calc-step {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  position: relative;
  transition: all var(--transition);
  cursor: default;
}

.calc-step.active {
  background: var(--white);
  color: var(--navy);
}

.calc-step.completed {
  background: rgba(40,167,69,0.06);
  color: var(--success);
}

.calc-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--medium-gray);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}

.calc-step.active .calc-step-number {
  background: var(--navy);
  color: var(--white);
}

.calc-step.completed .calc-step-number {
  background: var(--success);
  color: var(--white);
}

/* --- Form Steps --- */
.calc-body {
  padding: 40px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.step-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* --- Form Elements --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group label .hint {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.78rem;
}

.form-group input,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,42,74,0.1);
}

.form-group input::placeholder {
  color: #aaa;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* --- Checkbox Grid --- */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--light-gray);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.88rem;
}

.checkbox-item:hover {
  border-color: var(--border-gray);
  background: var(--white);
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.checkbox-item.checked {
  border-color: var(--navy);
  background: rgba(27,42,74,0.04);
}

/* --- Buttons --- */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--medium-gray);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-hover);
  box-shadow: 0 4px 12px rgba(196,30,58,0.3);
}

.btn-secondary {
  background: var(--light-gray);
  color: var(--text-dark);
  border: 1.5px solid var(--border-gray);
}
.btn-secondary:hover {
  background: var(--medium-gray);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  box-shadow: 0 4px 12px rgba(27,42,74,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

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

/* --- Results Section --- */
.results-section {
  display: none;
}

.results-section.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}

.results-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 32px 40px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.results-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.results-header p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.results-body {
  background: var(--white);
  padding: 32px 40px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Result cards */
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.result-card {
  background: var(--light-gray);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--medium-gray);
}

.result-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 6px;
  font-weight: 600;
}

.result-card-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.result-card-unit {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

/* Breakdown table */
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.result-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.result-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.result-table th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.result-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--medium-gray);
  font-size: 0.9rem;
}

.result-table tr:nth-child(even) {
  background: var(--light-gray);
}

.result-table tr:last-child td:first-child {
  border-radius: 0 0 0 var(--radius-sm);
}

.result-table tr:last-child td:last-child {
  border-radius: 0 0 var(--radius-sm) 0;
}

.result-table .row-total {
  font-weight: 700;
  background: rgba(27,42,74,0.06) !important;
}

/* Supplement recommendations */
.supplement-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.supplement-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--medium-gray);
}

.supplement-item:last-child {
  border-bottom: none;
}

.supplement-priority {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.priority-high {
  background: rgba(196,30,58,0.1);
  color: var(--red);
}

.priority-medium {
  background: rgba(255,193,7,0.15);
  color: #b38600;
}

.priority-low {
  background: rgba(40,167,69,0.1);
  color: var(--success);
}

.supplement-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.supplement-info p {
  font-size: 0.83rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* Notes/warnings */
.result-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(23,162,184,0.06);
  border-left: 3px solid var(--info);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--text-medium);
}

.result-warning {
  background: rgba(255,193,7,0.08);
  border-left-color: var(--warning);
}

.result-note-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Section divider in results */
.result-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- Email Capture --- */
.email-capture {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  margin: 32px 0;
  text-align: center;
  box-sizing: border-box;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.email-capture h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.email-capture p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.email-form input {
  flex: 1 1 120px;
  min-width: 0;
  padding: 14px 18px;
  box-sizing: border-box;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: all var(--transition);
}

.email-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.email-form input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}

.email-form button {
  flex-shrink: 0;
  padding: 14px 20px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  box-sizing: border-box;
}

.email-form button:hover {
  background: var(--red-hover);
}

.email-privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
}

.email-success {
  display: none;
  padding: 20px;
  text-align: center;
}

.email-success.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}

.email-success-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

/* --- CTA Banner (Shop Schneiders) --- */
.cta-banner {
  background: var(--white);
  border: 2px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 32px 0;
}

.cta-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.cta-content p {
  font-size: 0.88rem;
  color: var(--text-light);
}

/* --- How It Works --- */
.how-section {
  padding: 60px 0;
  background: var(--white);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 32px;
}

.how-card {
  text-align: center;
  padding: 24px 20px;
}

.how-card-icon {
  width: 64px;
  height: 64px;
  background: rgba(27,42,74,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.how-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.how-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 60px 0;
}

.faq-item {
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  font-family: var(--font-main);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--light-gray);
}

.faq-arrow {
  font-size: 0.8rem;
  color: var(--text-light);
  transition: transform var(--transition);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 340px;
}

.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover {
  color: var(--white);
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 6px;
}

.powered-by-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.powered-by-logo img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* --- Loading spinner --- */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================================
   LEAD GATE MODAL
   ======================================== */

.lead-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.88);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.lead-gate-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: gateSlideIn 0.28s ease;
  position: relative;
}

@keyframes gateSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.lead-gate-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 14px;
}

.lead-gate-modal h2 {
  color: var(--navy);
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.25;
}

.lead-gate-modal > p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.6;
}

.lead-gate-form {
  text-align: left;
  position: relative;
}

.gate-field {
  margin-bottom: 16px;
}

.gate-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.gate-req {
  color: var(--red);
}

.gate-opt {
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.8rem;
}

.gate-field input[type="email"],
.gate-field input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-gray);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}

.gate-field input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.1);
}

.gate-field input::placeholder {
  color: #aaa;
}

.gate-error {
  font-size: 0.85rem;
  color: #dc3545;
  margin-bottom: 10px;
  min-height: 1em;
}

.gate-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 1rem;
  margin-bottom: 14px;
}

.gate-privacy-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.gate-privacy-note a {
  color: var(--red);
}

@media (max-width: 480px) {
  .lead-gate-modal {
    padding: 32px 20px 24px;
  }

  .lead-gate-modal h2 {
    font-size: 1.3rem;
  }
}

/* --- Print styles --- */
@media print {
  .site-header, .top-bar, .trust-bar, .hero, .how-section,
  .faq-section, .site-footer, .email-capture, .cta-banner,
  .form-actions, .calculator-card .calc-progress { display: none !important; }
  .results-section { display: block !important; }
  .results-body { box-shadow: none; padding: 0; }
  body { background: white; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }

  .header-nav.open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-number {
    font-size: 1.3rem;
  }

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

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .calc-body {
    padding: 24px;
  }

  .calc-step span:not(.calc-step-number) {
    display: none;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .results-header,
  .results-body {
    padding: 24px;
  }

  .email-form {
    flex-direction: column;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .trust-items {
    gap: 16px;
  }

  .result-table {
    font-size: 0.82rem;
  }

  .result-table th,
  .result-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 16px 36px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .container, .container-narrow {
    padding: 0 16px;
  }

  .calc-body {
    padding: 20px 16px;
  }

  .results-header,
  .results-body {
    padding: 20px 16px;
  }

  .email-capture {
    padding: 28px 20px;
  }
}
