/* ============================================================
   ALL SITE RENTALS — PUBLIC-FACING QUOTE FORM STYLES
   Mobile-first, teal/orange branding matching allsiterentals.com
   ============================================================ */

:root {
  --primary: #11d0c7;
  --primary-dark: #0eb5ad;
  --primary-light: #3cbfb9;
  --primary-bg: #e8faf9;
  --accent: #f79e1b;
  --accent-dark: #e08a0e;
  --bg: #f2f2f2;
  --card-bg: #ffffff;
  --text: #333333;
  --text-muted: #5e5e5e;
  --text-light: #999999;
  --border: #d9d9d9;
  --border-focus: #11d0c7;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---- HEADER ---- */

.header {
  background: linear-gradient(135deg, #0a9e97 0%, #11d0c7 60%, #3cbfb9 100%);
  color: #fff;
  text-align: center;
  padding: 24px 16px;
}
.header-inner {
  max-width: 540px;
  margin: 0 auto;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.tagline {
  font-size: 0.85rem;
  opacity: 0.85;
  font-weight: 400;
}

/* ---- FORM CONTAINER ---- */

.form-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 24px 16px 100px;
}

/* ---- PROGRESS BAR ---- */

.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}
.progress-step {
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s;
}
.progress-step.active {
  color: var(--primary-dark);
  font-weight: 700;
}
.progress-step.completed {
  color: var(--primary);
}

/* ---- FORM STEPS ---- */

.form-step {
  display: none;
  animation: fadeSlideIn 0.35s ease forwards;
}
.form-step.active {
  display: block;
}

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

.form-step h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ---- FORM FIELDS ---- */

.field-group {
  margin-bottom: 20px;
}
.field-group > label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 8px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

input[type="number"],
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(17, 208, 199, 0.15);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235e5e5e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* Validation error state */
.input-error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.field-error {
  display: block;
  color: var(--error);
  font-size: 0.78rem;
  margin-top: 4px;
  font-weight: 500;
}

/* ---- CONSENT CHECKBOX ---- */

.consent-group {
  margin-top: 16px;
  margin-bottom: 8px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ---- RADIO CARDS ---- */

.radio-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio-card {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 52px;
  background: var(--card-bg);
}
.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.radio-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-1px);
}
.radio-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-weight: 600;
}
.radio-card span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.radio-card span small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}
.radio-card:has(input:checked) span small {
  color: var(--primary-dark);
}

/* 4-column radio grid */
.radio-cards-4 .radio-card {
  min-width: 60px;
  flex: 0 1 calc(25% - 8px);
  padding: 12px 8px;
  font-size: 0.85rem;
}

/* Large product cards (step 2) */
.radio-cards-large {
  flex-direction: column;
  gap: 12px;
}
.radio-cards-large .radio-card {
  flex: none;
  padding: 20px;
  text-align: left;
  justify-content: flex-start;
  min-height: auto;
}
.radio-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.radio-card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.radio-card-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.radio-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
}
.radio-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}
.radio-card:has(input:checked) .radio-card-desc {
  color: var(--primary-dark);
}

/* ---- NAVIGATION BUTTONS ---- */

.form-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  z-index: 100;
}
.form-nav-inner {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 540px;
}
.btn-back {
  flex: 0 0 auto;
  padding: 14px 20px;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-back:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}
.btn-next {
  flex: 1;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-next:hover {
  background: var(--accent-dark);
}
.btn-next:active {
  transform: scale(0.98);
}
.btn-next:disabled {
  background: var(--text-light);
  cursor: not-allowed;
}
.btn-next.btn-submit {
  background: var(--accent);
}

/* ---- REVIEW CARD ---- */

.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.review-section {
  margin-bottom: 16px;
}
.review-section:last-child {
  margin-bottom: 0;
}
.review-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.review-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-size: 0.88rem;
}
.review-line .review-label {
  color: var(--text-muted);
}
.review-line .review-value {
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

/* ---- REVIEW CONFIRMATION ---- */

.review-confirm {
  text-align: center;
  margin-top: 24px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.review-confirm p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.review-confirm-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-confirm-yes {
  flex: 1;
  max-width: 220px;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-confirm-yes:hover {
  background: var(--accent-dark);
}
.btn-confirm-yes:active {
  transform: scale(0.98);
}
.btn-confirm-yes:disabled {
  background: var(--text-light);
  cursor: not-allowed;
}
.btn-confirm-no {
  flex: 0 0 auto;
  padding: 14px 20px;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-confirm-no:hover {
  background: var(--bg);
  border-color: var(--text-muted);
}

/* ---- ESTIMATE RANGE CARD ---- */

.estimate-range-card {
  background: var(--primary-bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.estimate-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.estimate-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.estimate-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- THANK YOU SCREEN ---- */

.thank-you-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.thank-you-screen.hidden {
  display: none;
}
.thank-you-inner {
  max-width: 540px;
  width: 100%;
  text-align: center;
}
.thank-you-icon {
  margin-bottom: 20px;
}
.thank-you-screen h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.thank-you-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.next-steps {
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.next-steps h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.next-steps ol {
  padding-left: 20px;
}
.next-steps li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 4px 0;
}

.contact-fallback {
  margin-bottom: 24px;
}
.contact-fallback p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.phone-link {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.phone-link:hover {
  text-decoration: underline;
}

.btn-secondary {
  padding: 12px 24px;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover {
  background: var(--bg);
}

/* ---- FOOTER ---- */

.footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-light);
  font-size: 0.78rem;
}
.footer-note {
  margin-top: 4px;
}

/* ---- HONEYPOT ---- */

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ---- RESPONSIVE ---- */

@media (min-width: 600px) {
  .header {
    padding: 32px 24px;
  }
  .logo {
    font-size: 1.75rem;
  }
  .form-container {
    padding: 32px 24px 110px;
  }
  .form-step h2 {
    font-size: 1.5rem;
  }
  .form-nav {
    padding: 20px 24px;
  }
  .estimate-value {
    font-size: 2.2rem;
  }
}

@media (min-width: 900px) {
  .form-container {
    padding: 40px 0 120px;
  }
}
