/* Booking page styles — matches GroundworkOS theme */

.booking-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Step bar */
.step-bar {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  gap: 0;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.step.active, .step.complete { opacity: 1; }
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: all 0.2s;
}
.step.active .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.complete .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-label { font-size: 0.8rem; color: var(--fg-muted); }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 0.75rem; }

/* Step sections */
.step-section { display: none; }
.step-section.active { display: block; }
.step-header { margin-bottom: 2rem; }
.step-eyebrow { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-warm); font-weight: 500; margin-bottom: 0.5rem; }
.step-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 600; color: var(--fg); margin-bottom: 0.5rem; }
.step-desc { font-size: 0.9rem; color: var(--fg-muted); }

/* Service cards */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 480px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  display: flex;
  align-items: stretch;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
}
.svc-card:hover { border-color: var(--accent); }
.svc-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(58, 107, 53, 0.12); }
.svc-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.svc-inner { padding: 1.5rem; flex: 1; }
.svc-icon { color: var(--accent); margin-bottom: 0.75rem; }
.svc-name { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.svc-desc { font-size: 0.8rem; color: var(--fg-muted); line-height: 1.5; margin-bottom: 0.6rem; }
.svc-from { font-size: 0.8rem; font-weight: 500; color: var(--accent); }
.svc-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.15s;
}
.svc-card.selected .svc-check { opacity: 1; transform: scale(1); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  width: 100%;
  justify-content: center;
}
@media (min-width: 480px) { .btn-primary { width: auto; } }
.btn-primary:hover:not(:disabled) { background: var(--patch-green); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn-row { display: flex; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.btn-row .btn-primary { flex: 1; }

/* Form */
.booking-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--fg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--fg);
  background: var(--card-bg);
  transition: border-color 0.15s;
  box-sizing: border-box;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--fg-muted); opacity: 0.6; }

/* Lot size grid */
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
@media (max-width: 480px) { .size-grid { grid-template-columns: repeat(2, 1fr); } }

.size-option {
  cursor: pointer;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.15s;
}
.size-option:has(input:checked) { border-color: var(--accent); background: rgba(58, 107, 53, 0.04); }
.size-inner { padding: 0.6rem 0.5rem; text-align: center; }
.size-option input { position: absolute; opacity: 0; }
.size-label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--fg); }
.size-note { display: block; font-size: 0.7rem; color: var(--fg-muted); margin-top: 0.2rem; }

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--fg);
  user-select: none;
}
.checkbox-label input { position: absolute; opacity: 0; }
.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: var(--card-bg);
}
.checkbox-label input:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

/* Estimate card */
.estimate-card {
  background: var(--accent);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.estimate-service { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.estimate-price { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 0.75rem; }
.estimate-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* Booking details */
.booking-details {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.details-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.detail-row { display: flex; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--bg-alt); font-size: 0.9rem; }
.detail-row:last-child { border-bottom: none; }
.detail-label { color: var(--fg-muted); min-width: 70px; flex-shrink: 0; }
.detail-val { color: var(--fg); font-weight: 400; }

/* Confirm section */
.confirm-section { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.confirm-text { font-size: 0.9rem; color: var(--fg-muted); max-width: 380px; }

/* Success */
.success-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}
.success-icon { color: var(--accent); margin-bottom: 1rem; }
.success-section h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 600; margin-bottom: 0.5rem; }
.success-id { font-size: 0.85rem; color: var(--fg-muted); margin-bottom: 0.75rem; font-family: monospace; }
.success-section p { font-size: 0.95rem; color: var(--fg-muted); max-width: 340px; line-height: 1.6; }

/* Footer */
.footer { background: var(--patch-green); padding: 2rem 2.5rem; text-align: center; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.footer-name { font-family: 'Playfair Display', serif; font-size: 1rem; color: #fff; font-weight: 600; }
.footer-tag { font-size: 0.75rem; color: rgba(255,255,255,0.5); }
.footer-info { font-size: 0.8rem; color: rgba(255,255,255,0.6); }

/* Nav home link */
.nav-home-link { text-decoration: none; }
.nav-home-link:hover { opacity: 0.8; }