/* ============================================================
   Top Dog KC - Booking Form Styles
   booking.css
   Brand: #1a3a5c (navy), #e8b84b (gold), #ffffff, #f5f6f8
   Font: system stack
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #1a3a5c;
  --navy-mid:   #234d7a;
  --navy-light: #2e6099;
  --gold:       #e8b84b;
  --gold-dark:  #c99a30;
  --white:      #ffffff;
  --bg:         #f5f6f8;
  --gray-100:   #eef0f3;
  --gray-200:   #dde1e7;
  --gray-400:   #9aa3ae;
  --gray-600:   #5a6472;
  --gray-800:   #333a43;
  --red:        #c0392b;
  --red-light:  #fdecea;
  --green:      #1e7e34;
  --green-light:#eaf5ec;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(26,58,92,0.10), 0 1px 4px rgba(26,58,92,0.06);
  --shadow-sm:  0 2px 8px rgba(26,58,92,0.08);
  --transition: 0.22s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--gray-800);
  min-height: 100vh;
  line-height: 1.6;
}

/* ---- Page Layout ---- */
.booking-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 60px;
}

.booking-header {
  text-align: center;
  margin-bottom: 28px;
  width: 100%;
  max-width: 700px;
}

.booking-header .logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.booking-header .logo-icon {
  width: 48px;
  height: 48px;
}

.booking-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.booking-header .tagline {
  font-size: 0.95rem;
  color: var(--gray-600);
}

/* ---- Form Card ---- */
.booking-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 700px;
  overflow: hidden;
}

/* ---- Step Indicator ---- */
.step-indicator {
  background: var(--navy);
  padding: 24px 24px 0;
}

.step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}

.step-dot-wrap {
  display: flex;
  align-items: center;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  background: transparent;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 0 4px rgba(232,184,75,0.25);
}

.step-dot.completed {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
}

.step-connector {
  height: 2px;
  width: 40px;
  background: rgba(255,255,255,0.15);
  transition: background var(--transition);
  flex-shrink: 0;
}

.step-connector.completed {
  background: var(--gold-dark);
}

.step-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 0;
}

.step-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  width: 80px;
  transition: color var(--transition);
}

.step-label.active {
  color: var(--gold);
}

.step-label.completed {
  color: rgba(255,255,255,0.7);
}

/* ---- Progress Bar ---- */
.progress-bar-wrap {
  background: var(--navy);
  padding: 12px 24px 0;
}

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ---- Step Content ---- */
.step-content-area {
  padding: 0;
}

.step-panel {
  display: none;
  animation: fadeIn 0.28s ease;
  padding: 32px 32px 28px;
}

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

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

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.step-subtitle {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: 18px;
}

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

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

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 6px;
}

label .req {
  color: var(--red);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="datetime-local"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  border-color: var(--navy-mid);
  box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

input[type="text"].error,
input[type="email"].error,
input[type="tel"].error,
input[type="password"].error,
input[type="datetime-local"].error,
select.error,
textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}

input[readonly] {
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: default;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6472' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

.field-hint {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.field-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 4px;
  display: none;
}

.field-error.visible {
  display: block;
}

/* ---- Radio & Checkbox Groups ---- */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.radio-label,
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gray-800);
  padding: 8px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
  user-select: none;
}

.radio-label:hover,
.check-label:hover {
  border-color: var(--navy-mid);
  background: var(--gray-100);
}

input[type="radio"],
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}

input[type="radio"]:checked + span,
input[type="checkbox"]:checked + span {
  color: var(--navy);
  font-weight: 600;
}

.radio-label:has(input:checked),
.check-label:has(input:checked) {
  border-color: var(--navy);
  background: #eef3f8;
}

.addon-price {
  font-size: 0.8rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-left: 2px;
}

/* ---- File Upload ---- */
.file-upload-area {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  background: var(--gray-100);
}

.file-upload-area:hover {
  border-color: var(--navy-mid);
  background: #eef3f8;
}

.file-upload-area input[type="file"] {
  display: none;
}

.file-upload-area .upload-icon {
  font-size: 2rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.file-upload-area .upload-text {
  font-size: 0.88rem;
  color: var(--gray-600);
}

.file-upload-area .upload-text strong {
  color: var(--navy);
}

.file-name-display {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}

/* ---- Notice ---- */
.info-notice {
  font-size: 0.82rem;
  color: var(--gray-600);
  font-style: italic;
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  line-height: 1.5;
}

/* ---- Dog Section ---- */
.dog-section {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}

.dog-section-header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dog-section-header h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  margin: 0;
  line-height: 1;
  align-self: center;
}

.dog-section-body {
  padding: 20px;
}

.btn-remove-dog {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-remove-dog:hover {
  background: rgba(255,255,255,0.25);
}

.btn-add-dog {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  border: 2px dashed var(--navy-light);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-add-dog:hover {
  background: #eef3f8;
  border-color: var(--navy);
}

.btn-add-dog:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Addons Grid ---- */
.addons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.addon-item {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}

.addon-item .check-label {
  border: none;
  border-radius: 0;
  padding: 10px 12px;
  width: 100%;
}

.addon-item:has(input:checked) {
  border-color: var(--navy);
  background: #eef3f8;
}

/* ---- Review Summary ---- */
.review-section {
  margin-bottom: 20px;
}

.review-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.review-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 12px;
}

.review-label {
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 600;
}

.review-value {
  font-size: 0.88rem;
  color: var(--gray-800);
}

.review-dog-card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.review-dog-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-dog-card h4::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---- Agreement ---- */
.agreement-box {
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--gray-800);
  margin-bottom: 24px;
}

.agreement-box h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.agreement-box h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin: 14px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agreement-box p {
  margin-bottom: 8px;
}

.agreement-box::-webkit-scrollbar {
  width: 6px;
}

.agreement-box::-webkit-scrollbar-track {
  background: var(--gray-200);
  border-radius: 3px;
}

.agreement-box::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 3px;
}

.signature-section {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  background: #fafbfc;
}

.signature-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.signature-fields {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 16px;
  margin-bottom: 16px;
}

.agree-check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
}

.agree-check-wrap input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

.agree-check-label {
  font-size: 0.88rem;
  color: var(--gray-800);
  cursor: pointer;
  line-height: 1.5;
}

/* ---- Buttons ---- */
.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary.gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary.gold:hover:not(:disabled) {
  background: var(--gold-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 11px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---- Spinner ---- */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.spinner.gold-spin {
  border-color: rgba(26,58,92,0.2);
  border-top-color: var(--navy);
}

.btn-primary.loading .spinner {
  display: inline-block;
}

.btn-primary.loading .btn-text {
  opacity: 0.7;
}

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

/* ---- Alert / Toast ---- */
.form-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: none;
}

.form-alert.error {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #f5c6c2;
  display: block;
}

.form-alert.success {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #b8dfbd;
  display: block;
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 20px 0;
}

/* ---- Autocomplete Dropdown ---- */
.pac-container {
  font-family: var(--font) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow) !important;
  border: 1.5px solid var(--gray-200) !important;
  font-size: 0.9rem !important;
  margin-top: 4px !important;
}

.pac-item {
  padding: 8px 14px !important;
  cursor: pointer !important;
}

.pac-item:hover {
  background: var(--gray-100) !important;
}

.pac-item-selected,
.pac-item-selected:hover {
  background: #eef3f8 !important;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .booking-page {
    padding: 12px 8px 48px;
  }

  .step-panel {
    padding: 24px 18px 20px;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .signature-fields {
    grid-template-columns: 1fr;
  }

  .step-connector {
    width: 20px;
  }

  .step-label {
    font-size: 0.6rem;
    width: 60px;
  }

  .addons-grid {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .review-label {
    color: var(--gray-400);
    font-size: 0.75rem;
    margin-top: 6px;
  }

  .btn-row {
    flex-direction: column-reverse;
  }

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

@media (max-width: 400px) {
  .step-dot {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
  }

  .step-indicator {
    padding: 18px 12px 0;
  }
}

/* ---- Utilities ---- */
.hidden {
  display: none !important;
}

.text-sm {
  font-size: 0.85rem;
}

.text-muted {
  color: var(--gray-600);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---- Dog identity row: 3 columns (name, gender, age) ---- */
.dog-identity-row {
  grid-template-columns: 1.2fr 1.3fr 80px !important;
}

/* ---- Dog breed/service row: equal 2 columns matching size/hair row ---- */
.dog-breed-service-row {
  grid-template-columns: 1fr 1fr !important;
}

/* ---- Address sub-fields group ---- */
.address-subfields {
  margin-top: 12px;
}

.address-subfields .form-row-3 {
  margin-top: 10px;
}

/* ---- Rabies upload notice ---- */
.rabies-notice {
  font-size: 0.83rem;
  color: var(--gray-600);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* ---- Step header nav colors ---- */
.progress-bar-wrap {
  padding-bottom: 16px;
}

/* ============================================================
   Returning Client Login Panel
============================================================ */
.returning-login { margin-top: 16px; }
.returning-login-box {
  background: #f0f4f8;
  border: 1.5px solid #c8d6e5;
  border-radius: 10px;
  padding: 24px 24px 20px;
}
.returning-login-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
}
.returning-login-sub {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0 0 18px;
}
.returning-login-actions { margin-top: 12px; }
.returning-login-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}
.returning-login-msg.success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}
.returning-login-msg.error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}
.returning-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d4edda;
  color: #155724;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ============================================================
   CARD RESERVATION SECTION (Step 4 - Agreement)
   ============================================================ */
.card-reservation-section {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  margin-bottom: 28px;
}

.card-res-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--navy);
}

.card-res-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.card-res-header svg {
  color: var(--gold-dark);
  flex-shrink: 0;
}

.card-res-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.5;
}

.card-res-secure {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  line-height: 1.4;
}

.card-res-secure svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Full-width column override inside form-row */
.form-group.col-full {
  flex: 1 1 100% !important;
  width: 100%;
}

/* ============================================================
   DATE SELECT DROPDOWNS
   ============================================================ */
.date-selects {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 8px;
}

.date-select {
  /* inherits .form-control styles */
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.97rem;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6472' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 30px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.date-select:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(46,96,153,0.13);
}

.date-select.error {
  border-color: var(--red);
}

@media (max-width: 480px) {
  .date-selects {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .date-selects .date-select:first-child {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   STYLED DATE INPUT - matches other form fields, one icon, fully clickable
   Wrap the input in <div class="date-input-wrap"> to get the icon pseudo.
   ============================================================ */

/* Wrapper provides positioning context for the icon */
.date-input-wrap {
  position: relative;
  display: block;
}

/* Native calendar picker icon - visible and shifted to the right */
input[type="date"].date-input::-webkit-calendar-picker-indicator {
  opacity: 1;
  position: absolute;
  right: 2px;
  width: 18px;
  height: 100%;
  cursor: pointer;
}
input[type="date"].date-input::-webkit-inner-spin-button {
  display: none;
}

/* ::after pseudo removed - native picker icon is used instead */
.date-input-wrap::after {
  content: none;
}

input[type="date"].date-input,
input.date-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.97rem;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  background-image: none !important;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
  color-scheme: light;
}

input[type="date"].date-input:focus,
input.date-input:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(46,96,153,0.13);
}

/* Hide the browser native calendar icon completely - we use our own ::after SVG */
input[type="date"].date-input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  background: transparent;
  color: transparent;
}

input[type="date"].date-input::-webkit-inner-spin-button,
input[type="date"].date-input::-webkit-clear-button {
  display: none;
  -webkit-appearance: none;
}

input[type="date"].date-input.error {
  border-color: var(--red);
}

/* ============================================================
   BILLING ADDRESS SUBFIELDS
   ============================================================ */
.billing-subfields {
  display: none;
  margin-top: 12px;
}
.billing-subfields.visible {
  display: block;
}
.same-address-wrap {
  margin-bottom: 14px;
}
.same-address-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------------------------
   Service Info Box (what's included per service)
--------------------------------------------------------------- */
.service-info-box {
  margin-top: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .85rem;
  color: #0c4a6e;
  line-height: 1.5;
}

.service-info-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.service-info-box ul {
  margin: 0 0 8px 0;
  padding-left: 18px;
}

.service-info-box ul li {
  margin-bottom: 2px;
}

.service-price-note {
  margin: 6px 0 0;
  font-style: italic;
  color: #075985;
  font-size: .82rem;
}

.service-caution-note {
  margin: 6px 0 0;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: .82rem;
}

/* ---------------------------------------------------------------
   Service Info Row - full-width banner below breed/service row
--------------------------------------------------------------- */
.service-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 4px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 10px 14px;
}

.service-info-row .service-info-box {
  flex: 1 1 0;
  margin-top: 0;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  font-size: .82rem;
  color: #0c4a6e;
}

/* Inline bullet list - wrap instead of stacking */
.service-info-row .service-info-box ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  padding: 0;
  margin: 4px 0 6px 0;
  list-style: none;
}

.service-info-row .service-info-box ul li::before {
  content: "- ";
}

.service-info-row .service-info-box .service-price-note,
.service-info-row .service-info-box .service-caution-note {
  font-size: .75rem;
  margin-top: 4px;
  line-height: 1.4;
}

.service-estimate-col {
  flex: 0 0 auto;
  background: linear-gradient(160deg, #fffbf0 0%, #fff5d6 100%);
  border: 1.5px solid #e8b84b;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1px;
  white-space: nowrap;
}

.est-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #a07830;
}

.est-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a3a5c;
  line-height: 1.2;
}

.est-note {
  font-size: .67rem;
  color: #888;
}

/* ---------------------------------------------------------------
   Addon Total Bar - shown below addons grid when addons selected
--------------------------------------------------------------- */
.addon-total-bar {
  margin-top: 10px;
  margin-bottom: 15px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1a3a5c 0%, #234d7a 100%);
  border-radius: 8px;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.addon-total-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #e8b84b;
}

.addon-total-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.addon-total-detail {
  font-size: .78rem;
  color: rgba(255,255,255,0.70);
  margin-left: auto;
}

/* ---------------------------------------------------------------
   Pricing disclaimer note
--------------------------------------------------------------- */
.pricing-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .83rem;
  color: #92400e;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ---- Agreement Consent Box (Step 4) ---- */
.agreement-consent-wrap {
  margin-bottom: 24px;
}
.agreement-consent-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fffbf2;
  border: 1.5px solid #d4a843;
  border-radius: var(--radius);
  padding: 16px 18px;
}
.agreement-consent-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.agreement-consent-text strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-900, #111);
}
.agreement-consent-text span {
  font-size: .8rem;
  color: var(--gray-500, #666);
}
.btn-view-agreement {
  flex-shrink: 0;
  background: #a07830;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.btn-view-agreement:hover { background: #8a6520; }

/* inline agree link button */
.agree-link {
  background: none;
  border: none;
  padding: 0;
  color: #a07830;
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.agree-link:hover { color: #8a6520; }

/* ---- Agreement Modal ---- */
.agr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.agr-modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}
.agr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.agr-modal-title {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  margin: 0;
}
.agr-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: color .15s;
}
.agr-modal-close:hover { color: #111; }
.agr-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.agr-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}
/* Loading spinner */
.agr-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: .9rem;
  padding: 20px 0;
}
.agr-spinner {
  width: 20px; height: 20px;
  border: 2px solid #e5e7eb;
  border-top-color: #a07830;
  border-radius: 50%;
  animation: agr-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes agr-spin { to { transform: rotate(360deg); } }
/* Rendered agreement content */
.agr-content h1, .agr-content h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
}
.agr-content h3 {
  font-size: .875rem;
  font-weight: 700;
  color: #374151;
  margin: 18px 0 6px;
}
.agr-content p {
  font-size: .855rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 8px;
}
.agr-content ul, .agr-content ol {
  padding-left: 20px;
  margin-bottom: 10px;
}
.agr-content li {
  font-size: .855rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 4px;
}
.agr-content strong { color: #111; }
@media (max-width: 600px) {
  .agreement-consent-box { flex-wrap: wrap; }
  .btn-view-agreement { width: 100%; text-align: center; }
}

/* ── Signature confirmation stamp ── */
.sig-stamp {
  margin-top: 10px;
  font-size: 0.78em;
  color: #555;
  font-style: italic;
  min-height: 1.4em;
  line-height: 1.4;
}
