:root {
  --surface: #ffffff;
  --text: #13202b;
  --muted: #596776;
  --line: #dbe3ea;
  --shadow: 0 18px 50px rgba(17, 31, 44, 0.08);
  --radius: 22px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(145deg, #2b1a4a 0%, #1d4a4a 100%);
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: #13202b;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* shared landing elements for header/footer */
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: #0f1720;
  color: #fff;
  padding: 14px 0;
}

.topbar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trust-item {
  text-align: center;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  font-size: 0.98rem;
}

.trust-item span {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
}

.form-page {
  padding: 40px 0;
}

.form-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* main card – keeps original form look */
.form-card {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2.5rem;
  box-shadow:
    0 30px 60px -15px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

/* two column layout */
.multi-row {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  flex-wrap: nowrap;
}

.step-tracker {
  flex: 0 0 280px;
  background: linear-gradient(
    135deg,
    rgba(147, 112, 219, 0.15) 0%,
    rgba(0, 128, 128, 0.15) 100%
  );
  border-radius: 2rem;
  padding: 2rem 1.2rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    0 10px 20px -10px rgba(75, 0, 130, 0.3);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  cursor: pointer;
}

.step-item:last-child {
  margin-bottom: 0;
}

.step-indicator {
  width: 48px;
  height: 48px;
  border-radius: 30% 70% 70% 30% / 30% 55% 45% 70%;
  background: linear-gradient(135deg, #f8f9ff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #4a2b7a;
  box-shadow:
    0 8px 14px -6px rgba(106, 13, 173, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.9);
  transition: all 0.2s;
  font-family: "Poppins", sans-serif;
}

.step-item.active .step-indicator {
  background: linear-gradient(135deg, #8a2be2, #20b2aa);
  color: white;
  box-shadow:
    0 10px 18px -5px #4b0082,
    0 0 0 4px rgba(255, 255, 255, 0.8);
  border-radius: 40% 60% 40% 60% / 40% 50% 50% 60%;
}

.step-info h4 {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #5f3b8c;
  text-transform: uppercase;
  opacity: 0.8;
}

.step-info p {
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #4a2b7a, #1e5f5f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  font-family: "Poppins", sans-serif;
}

.form-panel {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2rem;
  padding: 2rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px -20px rgba(75, 0, 130, 0.4);
}

.step-title {
  font-size: 2rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #5b2c9e, #1e7a7a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.step-sub {
  color: #4d3b6e;
  font-size: 1rem;
  margin-bottom: 2rem;
  border-left: 4px solid #9b4dff;
  padding-left: 1rem;
  background: linear-gradient(
    90deg,
    rgba(155, 77, 255, 0.1),
    rgba(0, 0, 0, 0)
  );
  border-radius: 0 8px 8px 0;
}

.input-group {
  margin-bottom: 1.8rem;
  position: relative;
}

.input-group label {
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #4a2b7a, #1e6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.input-group label i {
  background: linear-gradient(135deg, #8a2be2, #20b2aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 1.2rem;
}

.input-field {
  width: 100%;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(138, 43, 226, 0.2);
  border-radius: 1.2rem;
  outline: none;
  transition: all 0.2s;
  font-family: "Inter", sans-serif;
  box-shadow: 0 4px 8px rgba(138, 43, 226, 0.05);
}

.input-field:focus {
  border-color: #9b4dff;
  background: white;
  box-shadow:
    0 10px 20px -14px #8a2be2,
    0 0 0 3px rgba(138, 43, 226, 0.15);
}

.input-field.error {
  border-color: #ff4d6d;
  background: #fff0f3;
}

.error-message {
  color: #ff4d6d;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.error-message i {
  font-size: 0.8rem;
}

.plan-grid {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.plan-card {
  flex: 1 1 150px;
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.05),
    rgba(32, 178, 170, 0.05)
  );
  border-radius: 1.5rem;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 14px rgba(138, 43, 226, 0.1);
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(138, 43, 226, 0.14);
}

.plan-card i {
  font-size: 2.2rem;
  background: linear-gradient(135deg, #8a2be2, #20b2aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.plan-card h3 {
  font-weight: 700;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #4a2b7a, #1e6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.plan-card .price {
  color: #6b4b8c;
  font-weight: 600;
  margin: 0.4rem 0;
  font-size: 0.95rem;
  line-height: 1.35;
}

.plan-card.selected {
  border-color: #9b4dff;
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.15),
    rgba(32, 178, 170, 0.15)
  );
  box-shadow:
    0 18px 25px -16px #4b0082,
    0 0 0 3px rgba(155, 77, 255, 0.25);
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  align-items: center;
  gap: 12px;
}

.btn {
  padding: 0.9rem 2.1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  border: none;
  background: white;
  box-shadow: 0 8px 18px -10px rgba(138, 43, 226, 0.4);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.btn-primary {
  background: linear-gradient(135deg, #8a2be2, #20b2aa);
  color: white;
  box-shadow: 0 15px 25px -12px #5b2c9e;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7525c4, #1c9e96);
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: #4a2b7a;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: white;
}

.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.3);
}

.step-content {
  display: none;
}

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

.select-grid .option-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.icon-double {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.icon-double i {
  margin-bottom: 0;
}

.roof-grid .roof-card {
  min-height: 180px;
}

.custom-roof-icon {
  width: 90px;
  height: 70px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-roof-icon svg {
  width: 100%;
  height: 100%;
}

.custom-roof-icon svg rect,
.custom-roof-icon svg polygon,
.custom-roof-icon svg circle {
  fill: none;
  stroke: #6c35c9;
  stroke-width: 4;
  stroke-linejoin: round;
}

.custom-roof-icon svg path {
  fill: none;
  stroke: #6c35c9;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-card.selected .custom-roof-icon svg rect,
.plan-card.selected .custom-roof-icon svg polygon,
.plan-card.selected .custom-roof-icon svg circle,
.plan-card.selected .custom-roof-icon svg path {
  stroke: #4b0082;
}

.site-footer {
  margin: 0 16px 16px;
  padding: 24px 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.footer-logo {
  width: 220px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.site-footer p,
.site-footer a {
  color: #596776;
}

@media (max-width: 960px) {
  .footer-grid,
  .topbar-grid {
    grid-template-columns: 1fr;
  }

  .multi-row {
    flex-wrap: wrap;
  }

  .step-tracker {
    flex: 1 1 100%;
  }

  .form-panel {
    flex: 1 1 100%;
  }
}

@media (max-width: 700px) {
  .form-page {
    padding: 24px 0;
  }

  .form-card,
  .form-panel,
  .step-tracker {
    border-radius: 1.5rem;
  }

  .multi-row {
    flex-direction: column;
  }

  .step-tracker {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .step-item {
    flex: 1 1 calc(50% - 0.5rem);
    margin-bottom: 0;
  }

  .step-info p {
    font-size: 1rem;
  }

  .plan-grid.select-grid {
    flex-direction: column;
  }

  .roof-grid .roof-card {
    min-height: 150px;
  }

  .custom-roof-icon {
    width: 72px;
    height: 56px;
  }

  .nav-buttons {
    flex-wrap: wrap;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
