body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f7f4f2 0%, #ede9e7 100%);
  color: #222;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.calculator-wrapper {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  border-radius: 12px;
}

/* Site header / nav */

/* Header matching Luxury Verandas layout */
.main-header {background:#fff;border-bottom:1px solid #e6e0de}
.main-header .topbar{
  display:flex;align-items:center;justify-content:space-between;padding:10px 18px;max-width:1100px;margin:0 auto
}
.topbar .top-left {font-size:14px;color:#111}
.topbar .top-left .phone{display:block;font-weight:600}
.topbar .logo{position:relative;text-align:center}
.topbar .logo img{height:54px}
.topbar .top-right{display:flex;gap:18px;align-items:center}
.top-right a{color:#111;text-decoration:none;text-align:right;font-size:13px}

.main-nav{background:#efe9e8;border-top:1px solid #e0d9d8;padding:14px 18px}
.main-nav{display:flex;justify-content:center;gap:48px;font-weight:700;letter-spacing:2px}
.main-nav a{color:#111;text-decoration:none}
.nav-toggle{display:none;border:0;background:transparent;font-size:20px}

/* Invoice tweaks already inline; ensure wrapper is responsive */
.calculator-wrapper {width:92%;max-width:1100px}

@media (max-width:900px){
  .calculator-wrapper{padding:24px;margin:20px auto;border-radius:8px}
  .field-grid{grid-template-columns:1fr}
  .main-nav{display:none}
  .nav-toggle{display:block}
  .product-card{font-size:14px}
  .topbar .logo img{height:46px}
}

@media (max-width:480px){
  .calculator-wrapper{padding:16px;margin:10px;border-radius:8px}
  .topbar{padding:8px}
  .main-nav{gap:12px;padding:10px}
  .topbar .top-right{display:none}
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
  color: #111;
  font-weight: 700;
}

h2 {
  font-size: 22px;
  margin-bottom: 24px;
  color: #111;
}

.field {
  margin-bottom: 24px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0d9d8;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s ease;
  background: #fff;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.05);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.price-box {
  background: linear-gradient(135deg, #f2edea 0%, #efe9e8 100%);
  padding: 30px 20px;
  text-align: center;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.price-box h2 {
  font-size: 36px;
  margin: 10px 0;
  color: #111;
}

button {
  width: 100%;
  padding: 16px;
  background: #111;
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
/* Multi-Step Form Styles */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e0d9d8;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step.active .step-number {
  background: #111;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: scale(1.05);
}

.step.completed .step-number {
  background: #4CAF50;
  color: #fff;
  box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}

.step.completed .step-number::after {
  content: '✓';
  font-size: 22px;
}

.step-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.step.active .step-label {
  color: #111;
}

.step-line {
  flex: 1;
  height: 3px;
  background: #e0d9d8;
  margin: 0 20px;
  margin-bottom: 35px;
  border-radius: 2px;
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}

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

/* Navigation Buttons */
.form-navigation {
  display: flex;
  gap: 15px;
  margin-top: 40px;
}

.btn-primary, .btn-secondary {
  padding: 16px 32px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex: 1;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-primary:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-secondary {
  background: #f2edea;
  color: #111;
  border: 2px solid #e0d9d8;
}

.btn-secondary:hover {
  background: #efe9e8;
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  box-shadow: 0 4px 12px rgba(76,175,80,0.3);
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
  box-shadow: 0 6px 20px rgba(76,175,80,0.4);
}

/* Product Cards */
.product-card {
  transition: all 0.2s ease;
  border-radius: 6px;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  border-color: #111 !important;
}

/* Iframe Container */
.iframe-container {
  position: relative;
  width: 100%;
  margin: 10px 0 20px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.iframe-container iframe {
  display: block;
  background: #f9f9f9;
  border-radius: 8px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .step-indicator {
    padding: 0 10px;
    margin-bottom: 30px;
  }
  
  .step-number {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  
  .step-label {
    font-size: 12px;
  }
  
  .step-line {
    margin: 0 12px;
    margin-bottom: 28px;
    height: 2px;
  }
  
  .field {
    margin-bottom: 20px;
  }
  
  .field-grid {
    gap: 16px;
  }
  
  input, select, textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .price-box {
    padding: 24px 16px;
    margin: 24px 0;
  }
  
  .price-box h2 {
    font-size: 32px;
  }
  
  .form-navigation {
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }
  
  .btn-primary, .btn-secondary {
    padding: 14px 24px;
    font-size: 15px;
  }
  
  .iframe-container iframe {
    height: 400px;
  }
  
  #productCards {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .product-card {
    padding: 10px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .calculator-wrapper {
    padding: 16px;
    margin: 8px;
  }
  
  h1 {
    font-size: 22px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  .step-number {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  
  .step-label {
    font-size: 11px;
  }
  
  .step-line {
    margin: 0 8px;
    margin-bottom: 25px;
  }
  
  .price-box h2 {
    font-size: 28px;
  }
  
  .iframe-container iframe {
    height: 350px;
  }
  
  #productCards {
    grid-template-columns: 1fr !important;
  }
}
