/* ============================================================
   Top Dog KC - Booking Form Styles
   ALL rules scoped under .booking-card - no template bleed
   ============================================================ */

/* Local vars scoped to booking card only */
.booking-card {
  --bg:          #f5f6f8;
  --gray-100:    #eef0f3;
  --gray-200:    #dde1e7;
  --gray-400:    #9aa3ae;
  --gray-600:    #5a6472;
  --gray-800:    #333a43;
  --navy-mid:    #234d7a;
  --green:       #1e7e34;
  --green-light: #eaf5ec;
  --red-light:   #fdecea;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm:   6px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 8px rgba(26,58,92,0.08);
}

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

/* ---- Step Indicator ---- */

.booking-card .step-indicator {
  background: #1e3a6e;
  padding: 24px 24px 16px;
}

/* Row that holds all steps + connectors */
.booking-card .step-dots {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 0;
}

/* Each step column: number on top, label below */
.booking-card .step-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* The numbered circle */
.booking-card .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;
}

.booking-card .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);
}

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

/* Horizontal connector line - sits between step columns, aligned with dot center */
.booking-card .step-connector {
  height: 2px;
  width: 60px;
  background: rgba(255,255,255,0.15);
  transition: background var(--transition);
  flex-shrink: 0;
  margin-top: 17px; /* vertically centers line with 36px dot: (36/2) - (2/2) = 17 */
  align-self: flex-start;
}

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

/* Label sits below the number circle */
.booking-card .step-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 72px;
  line-height: 1.2;
  transition: color var(--transition);
}

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

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


/* ---- Progress Bar ---- */

.booking-card .progress-bar-wrap {
  background: #1e3a6e;
  padding: 12px 24px 0;
}



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



.booking-card .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 ---- */

.booking-card .step-content-area {
  padding: 0;
}



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



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


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


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



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


/* ---- Form Elements ---- */

.booking-card .form-group {
  margin-bottom: 18px;
}



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



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



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



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



.booking-card input[type="text"],
.booking-card input[type="email"],
.booking-card input[type="tel"],
.booking-card input[type="password"],
.booking-card input[type="datetime-local"],
.booking-card input[type="number"],
.booking-card select,
.booking-card 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;
}



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



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



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



.booking-card 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;
}



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



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



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



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


/* ---- Radio & Checkbox Groups ---- */

.booking-card .radio-group,
.booking-card .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}



.booking-card .radio-label,
.booking-card .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;
}



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



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



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



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



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


/* ---- File Upload ---- */

.booking-card .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);
}



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



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



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



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



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



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


/* ---- Notice ---- */

.booking-card .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 ---- */

.booking-card .dog-section {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 24px;
  overflow: hidden;
}



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



.booking-card .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;
}



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



.booking-card .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);
}



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



.booking-card .btn-add-dog {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(232,184,75,.35);
  letter-spacing: .02em;
}



.booking-card .btn-add-dog:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(232,184,75,.5);
  transform: translateY(-1px);
}



.booking-card .btn-add-dog:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ---- Addons Grid ---- */

.booking-card .addons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}



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



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



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


/* ---- Review Summary ---- */

.booking-card .review-section {
  margin-bottom: 20px;
}



.booking-card .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;
}



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



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



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



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



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



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


/* ---- Agreement ---- */

.booking-card .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;
}



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



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



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



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



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



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



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



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



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



.booking-card .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;
}



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



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


/* ---- Buttons ---- */

.booking-card .btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}



.booking-card .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;
}



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



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



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



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



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



.booking-card .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);
}



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


/* ---- Spinner ---- */

.booking-card .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;
}



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



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



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


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

/* ---- Alert / Toast ---- */

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



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



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


/* ---- Divider ---- */

.booking-card .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-card .booking-page {
    padding: 12px 8px 48px;
  }

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

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

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

  
  .booking-card .step-connector {
    width: 20px;
  }

  
  .booking-card .step-label {
    font-size: 0.6rem;
    max-width: 56px;
  }

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

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

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

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

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



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

  
  .booking-card .step-indicator {
    padding: 16px 12px 14px;
  }
}


/* ---- Utilities ---- */

.booking-card .hidden {
  display: none !important;
}



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



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



.booking-card .mt-0 { margin-top: 0; }


.booking-card .mb-0 { margin-bottom: 0; }


/* ---- Dog identity row: 3 columns (name, gender, age) ---- */

.booking-card .dog-identity-row {
  grid-template-columns: 1.2fr 1.3fr 80px !important;
  align-items: end;
}
/* Make radio group fill the same height as text input so it sits flush */
.booking-card .dog-identity-row .radio-group {
  min-height: 42px;
  display: flex;
  align-items: center;
}

/* Hide number spinner arrows on age field */
.booking-card input[type="number"]::-webkit-outer-spin-button,
.booking-card input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.booking-card input[type="number"] {
  -moz-appearance: textfield;
}


/* ---- Dog breed/service row: equal 2 columns matching size/hair row ---- */

.booking-card .dog-breed-service-row {
  grid-template-columns: 1fr 1fr !important;
}


/* ---- Address sub-fields group ---- */

.booking-card .address-subfields {
  margin-top: 12px;
}



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


/* ---- Rabies upload notice ---- */

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


/* ---- Step header nav colors ---- */

.booking-card .progress-bar-wrap {
  padding-bottom: 16px;
}


/* ============================================================
   Returning Client Login Panel
============================================================ */

.booking-card .returning-login { margin-top: 16px; }


.booking-card .returning-login-box {
  background: #f0f4f8;
  border: 1.5px solid #c8d6e5;
  border-radius: 10px;
  padding: 24px 24px 20px;
}


.booking-card .returning-login-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
}


.booking-card .returning-login-sub {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin: 0 0 18px;
}


.booking-card .returning-login-actions { margin-top: 12px; }


.booking-card .returning-login-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}


.booking-card .returning-login-msg.success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}


.booking-card .returning-login-msg.error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}


.booking-card .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)
   ============================================================ */

.booking-card .card-reservation-section {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  margin-bottom: 28px;
}



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



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



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



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



.booking-card .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;
}



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


/* Full-width column override inside form-row */

.booking-card .form-group.col-full {
  flex: 1 1 100% !important;
  width: 100%;
}


/* ============================================================
   DATE SELECT DROPDOWNS
   ============================================================ */

.booking-card .date-selects {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 8px;
}



.booking-card .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);
}



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



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



@media (max-width: 480px) {
  
  .booking-card .date-selects {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  
  .booking-card .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 */

.booking-card .date-input-wrap {
  position: relative;
  display: block;
}


/* Native calendar picker icon - visible and shifted to the right */

.booking-card input[type="date"].date-input::-webkit-calendar-picker-indicator {
  opacity: 1;
  position: absolute;
  right: 2px;
  width: 18px;
  height: 100%;
  cursor: pointer;
}


.booking-card input[type="date"].date-input::-webkit-inner-spin-button {
  display: none;
}


/* ::after pseudo removed - native picker icon is used instead */

.booking-card .date-input-wrap::after {
  content: none;
}



.booking-card input[type="date"].date-input,
.booking-card 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;
}



.booking-card input[type="date"].date-input:focus,
.booking-card 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 */

.booking-card 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;
}



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



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


/* ============================================================
   BILLING ADDRESS SUBFIELDS
   ============================================================ */

.booking-card .billing-subfields {
  display: none;
  margin-top: 12px;
}


.booking-card .billing-subfields.visible {
  display: block;
}


.booking-card .same-address-wrap {
  margin-bottom: 14px;
}


.booking-card .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)
--------------------------------------------------------------- */

.booking-card .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;
}



.booking-card .service-info-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: .88rem;
  font-weight: 800;
  color: #1e3a5f;
  text-transform: uppercase;
  letter-spacing: .6px;
}



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



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



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



.booking-card .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
--------------------------------------------------------------- */

.booking-card .service-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 4px;
  background: #e8f4fd;
  border: 1.5px solid #93c5fd;
  border-left: 5px solid #1a3a5c;
  border-radius: 8px;
  padding: 14px 16px;
}



.booking-card .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 */

.booking-card .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;
}



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



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



.booking-card .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;
}



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



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



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


/* ---------------------------------------------------------------
   Addon Total Bar - shown below addons grid when addons selected
--------------------------------------------------------------- */

.booking-card .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;
}



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



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



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


/* ---------------------------------------------------------------
   Pricing disclaimer note
--------------------------------------------------------------- */

.booking-card .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) ---- */

.booking-card .agreement-consent-wrap {
  margin-bottom: 24px;
}


.booking-card .agreement-consent-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fffbf2;
  border: 1.5px solid #d4a843;
  border-radius: var(--radius);
  padding: 16px 18px;
}


.booking-card .agreement-consent-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}


.booking-card .agreement-consent-text strong {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gray-900, #111);
}


.booking-card .agreement-consent-text span {
  font-size: .8rem;
  color: var(--gray-500, #666);
}


.booking-card .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;
}


.booking-card .btn-view-agreement:hover { background: #8a6520; }


/* inline agree link button */

.booking-card .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;
}


.booking-card .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 */

.booking-card .agr-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: .9rem;
  padding: 20px 0;
}


.booking-card .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 */

.booking-card .agr-content h1,
.booking-card .agr-content h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
}


.booking-card .agr-content h3 {
  font-size: .875rem;
  font-weight: 700;
  color: #374151;
  margin: 18px 0 6px;
}


.booking-card .agr-content p {
  font-size: .855rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 8px;
}


.booking-card .agr-content ul,
.booking-card .agr-content ol {
  padding-left: 20px;
  margin-bottom: 10px;
}


.booking-card .agr-content li {
  font-size: .855rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 4px;
}


.booking-card .agr-content strong { color: #111; }


@media (max-width: 600px) {
  
  .booking-card .agreement-consent-box { flex-wrap: wrap; }
  
  .booking-card .btn-view-agreement { width: 100%; text-align: center; }
}


/* ── Signature confirmation stamp ── */

.booking-card .sig-stamp {
  margin-top: 10px;
  font-size: 0.78em;
  color: #555;
  font-style: italic;
  min-height: 1.4em;
  line-height: 1.4;
}

