/* Reset & Base Variables */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --dark-bg: #0f172a;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --light-bg: #f8fafc;
  --accent-green: #10b981;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-bg);
  text-decoration: none;
}

.logo span {
  color: var(--primary-color);
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.btn-primary-sm {
  background-color: var(--primary-color);
  color: #ffffff !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.badge {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Features Section */
.features-section {
  padding: 4rem 0;
  text-align: center;
}

.features-section h2 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--dark-bg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  text-align: left;
}

.card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark-bg);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Section Header (Base) */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--dark-bg);
  margin: 0.75rem 0;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Membership Section (Dark Blue Backdrop) */
.membership-section {
  background-color: #0f172a;
  padding: 80px 0;
}

.membership-section .section-header h2 {
  color: #ffffff;
}

.membership-section .section-header p {
  color: #94a3b8;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* Individual Cards (Explicit Pure White) */
.membership-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.membership-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.membership-card.featured {
  border: 2px solid var(--primary-color);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-header h3 {
  font-size: 1.5rem;
  color: var(--dark-bg);
  margin-bottom: 0.25rem;
}

.card-header .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.card-header .price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1.75rem;
}

.features-list {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.features-list li {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.btn-secondary-dark {
  background-color: #f1f5f9;
  color: var(--dark-bg);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-secondary-dark:hover {
  background-color: #e2e8f0;
}

/* Repair Savings Estimator Section */
.estimator-section {
  padding: 4rem 0;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.estimator-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--light-bg);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

@media (max-width: 850px) {
  .estimator-card {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control, .form-control-range {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  color: var(--text-main);
}

.form-control-range {
  padding: 0;
  cursor: pointer;
}

.help-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.35rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  background: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

/* Results Display Boxes */
.estimator-results {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comparison-box {
  padding: 1.5rem;
  border-radius: 12px;
  position: relative;
}

.comparison-box.traditional {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.comparison-box.traditional h4 {
  color: #64748b;
  margin-bottom: 0.75rem;
}

.comparison-box.holcombe {
  background: #ffffff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.comparison-box.holcombe h4 {
  color: var(--dark-bg);
  margin-bottom: 0.75rem;
}

.savings-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background-color: var(--accent-green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.price-row strong {
  color: var(--text-main);
}

.total-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #cbd5e1;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.strikethrough {
  text-decoration: line-through;
  color: #ef4444;
}

.main-total strong {
  font-size: 1.3rem;
  color: var(--primary-color);
}

.savings-banner {
  background-color: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-weight: 800;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Quick Dispatch Check Section */
.estimate-section {
  padding: 3rem 0;
  background-color: #ffffff;
}

.estimate-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--light-bg);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
}

.estimate-box h2 {
  margin-bottom: 0.75rem;
}

.estimate-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.output-text {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  min-height: 1.5rem;
}

/* Booking Section */
.booking-section {
  padding: 40px 20px;
  background-color: #f8f9fa;
  font-family: inherit;
}

.booking-container {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.booking-container h2 {
  margin-top: 0;
  color: #1a202c;
}

.form-group-fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.form-group-fieldset legend {
  font-weight: 600;
  padding: 0 8px;
  color: #2b6cb0;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.three-col .form-field {
  flex: 1;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-field.full-width {
  width: 100%;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #4a5568;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 1rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #3182ce;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}

.submit-btn {
  width: 100%;
  background-color: #2b6cb0;
  color: #ffffff;
  border: none;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background-color: #2c5282;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: #94a3b8;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.85rem;
  border-top: 1px solid #1e293b;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.85rem;
    width: 100%;
  }

  .nav-links a {
    margin-left: 0;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .btn-primary-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }
}