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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  line-height: 1.6;
  min-height: 100vh;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 32px;
}

header h1 {
  font-size: 2rem;
  color: #1e3a5f;
  font-weight: 700;
  margin-bottom: 8px;
}

.business-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 4px;
}

.subtitle {
  color: #6b7280;
  font-size: 1.05rem;
}

/* Form Card */
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Announcement Banner */
.announcement-banner {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  white-space: pre-line;
}

@keyframes pulse-banner {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.01); box-shadow: 0 6px 20px rgba(217, 119, 6, 0.35); }
}

/* Form Layout */
.form-row {
  margin-bottom: 20px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-row.three-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 540px) {
  .form-row.two-col {
    grid-template-columns: 1fr 1fr;
  }
  .form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

/* Labels */
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e3a5f;
  margin-bottom: 6px;
}

/* Inputs */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.invalid,
.form-group select.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.service-desc {
  margin-top: 8px;
  padding: 10px 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #0c4a6e;
  line-height: 1.5;
}

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

/* Checkbox */
.checkbox-group {
  margin-bottom: 24px;
}

/* Optional/Required tags */
.optional-tag {
  font-weight: 400;
  font-size: 0.75rem;
  color: #9ca3af;
}
.required-tag {
  color: #ef4444;
}

/* VIN Input */
.vin-wrap {
  position: relative;
}
.vin-wrap input {
  text-transform: uppercase;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}
.vin-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
}
.vin-status.decoding { color: #6b7280; }
.vin-status.success { color: #10b981; }
.vin-status.error { color: #ef4444; }

/* Time Slots Section */
.time-slots-section {
  margin-bottom: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.slots-heading {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: 6px;
}

.slots-hint {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.slots-loading {
  text-align: center;
  color: #6b7280;
  padding: 16px;
  font-size: 0.9rem;
}

.slots-closed {
  text-align: center;
  color: #dc2626;
  padding: 16px;
  background: #fef2f2;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 480px) {
  .time-slots-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.time-slot-btn {
  padding: 10px 6px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e3a5f;
  cursor: pointer;
  transition: all 0.15s;
}

.time-slot-btn:hover:not(.unavailable):not(.selected) {
  border-color: #2563eb;
  background: #eff6ff;
}

.time-slot-btn.selected {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.time-slot-btn.unavailable {
  background: #f3f4f6;
  color: #c4c4c4;
  cursor: not-allowed;
  border-color: #e5e7eb;
  text-decoration: line-through;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 400 !important;
  color: #374151 !important;
  font-size: 0.9rem !important;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
}

/* Error */
.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Vehicle Section (collapsible) */
.vehicle-section {
  margin-bottom: 20px;
}
.vehicle-toggle {
  display: inline-block;
  color: #3b82f6;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 0;
}
.vehicle-toggle:hover {
  text-decoration: underline;
}
.vehicle-toggle.open {
  color: #64748b;
}
.vehicle-fields {
  margin-top: 12px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

/* Submit Button */
.btn-submit {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #d97706;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-submit:hover:not(:disabled) {
  background: #b45309;
}

.btn-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-submit:disabled {
  background: #fbbf24;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-submit.loading .btn-text::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  margin-left: 10px;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Card */
.success-card {
  text-align: center;
  background: #fff;
  border-radius: 12px;
  padding: 48px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-card h2 {
  color: #16a34a;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.success-details {
  background: #f0fdf4;
  border-radius: 8px;
  padding: 16px;
  margin: 20px 0;
}

.success-details p {
  color: #1a1a2e;
}

.success-note {
  color: #6b7280;
  font-size: 0.9rem;
  margin-top: 16px;
}

.business-contact {
  margin-top: 8px;
  font-weight: 700;
  color: #1e3a5f;
  font-size: 1.15rem;
}

.btn-another {
  margin-top: 24px;
  padding: 12px 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-another:hover {
  background: #1d4ed8;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  padding: 16px;
  color: #9ca3af;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 540px) {
  .page {
    padding: 24px 16px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .form-card {
    padding: 24px 20px;
  }
}
