/* ── OHT Booking System Styles ──────────────────────────────────────────────── */

/* Variables */
:root {
  --oht-blue:   #29abe2;
  --oht-orange: #f7941d;
  --oht-dark:   #2d3e50;
  --oht-green:  #27ae60;
  --oht-red:    #e74c3c;
  --oht-gray:   #95a5a6;
  --oht-light:  #f4f7fb;
  --oht-white:  #ffffff;
  --oht-radius: 10px;
  --oht-shadow: 0 4px 20px rgba(0,0,0,0.09);
}

/* ── Booking Wrap ──────────────────────────────────────────────────────────── */

#oht-booking-wrap {
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Arial', Helvetica, sans-serif;
  color: var(--oht-dark);
}

.oht-booking-welcome {
  background: linear-gradient(135deg, var(--oht-blue), #1a8bbf);
  color: #fff;
  border-radius: var(--oht-radius);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--oht-shadow);
}
.oht-booking-welcome h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #fff;
}
.oht-booking-welcome p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}

/* ── Steps ─────────────────────────────────────────────────────────────────── */

.oht-booking-step {
  display: none;
  background: var(--oht-white);
  border-radius: var(--oht-radius);
  padding: 28px 32px;
  box-shadow: var(--oht-shadow);
  margin-bottom: 20px;
  animation: ohtFadeIn 0.2s ease;
}
.oht-booking-step.active { display: block; }

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

.oht-step-title {
  margin: 0 0 24px;
  font-size: 18px;
  color: var(--oht-dark);
  border-bottom: 2px solid var(--oht-light);
  padding-bottom: 14px;
}

/* ── Service Cards ──────────────────────────────────────────────────────────── */

.oht-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 520px) {
  .oht-service-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

.oht-service-card {
  border: 2px solid #e9ecef;
  border-radius: var(--oht-radius);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  background: var(--oht-white);
}
.oht-service-card:hover {
  border-color: var(--oht-blue);
  background: #f0f8fd;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(41,171,226,0.15);
}
.oht-service-card.selected {
  border-color: var(--oht-blue);
  background: #e8f6fd;
  box-shadow: 0 0 0 3px rgba(41,171,226,0.2);
}

.oht-service-emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}
.oht-service-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--oht-dark);
  font-weight: 700;
}
.oht-service-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--oht-blue);
}
.oht-service-price small {
  font-size: 13px;
  font-weight: 600;
  color: var(--oht-gray);
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */

.oht-btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.18s;
  letter-spacing: 0.2px;
}
.oht-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}
.oht-btn-primary {
  background: var(--oht-blue);
  color: #fff;
}
.oht-btn-primary:hover:not(:disabled) {
  background: #1a8bbf;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(41,171,226,0.35);
  color: #fff;
  text-decoration: none;
}
.oht-btn-secondary {
  background: var(--oht-light);
  color: var(--oht-dark);
  border: 1px solid #dee2e6;
}
.oht-btn-secondary:hover:not(:disabled) {
  background: #e9ecef;
}
.oht-btn-pay {
  background: linear-gradient(135deg, var(--oht-green), #1e9150);
  color: #fff;
  font-size: 16px;
  padding: 15px 36px;
  width: 100%;
  display: block;
  text-align: center;
}
.oht-btn-pay:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(39,174,96,0.35);
}

/* Complete Booking & Pay button */
.oht-booking-submit {
  background-color: #f7941d !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  padding: 16px 40px !important;
  border-radius: 25px !important;
  border: none !important;
  width: 100% !important;
  cursor: pointer !important;
  margin-top: 20px !important;
}
.oht-booking-submit:hover:not(:disabled) {
  background-color: #e8820a !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(247,148,29,0.4) !important;
}

.oht-step-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ── Calendar ───────────────────────────────────────────────────────────────── */

.oht-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.oht-cal-arrow {
  background: var(--oht-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.oht-cal-arrow:hover { background: #1a8bbf; }

#oht-cal-month-label,
#oht-avail-month-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--oht-dark);
}

.oht-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.oht-cal-day-header {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--oht-gray);
  padding: 6px 0;
  text-transform: uppercase;
}

.oht-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s;
  position: relative;
}
.oht-cal-day.available {
  background: #e8f5e9;
  color: #1b5e20;
}
.oht-cal-day.available:hover {
  background: #c8e6c9;
  border-color: var(--oht-green);
  transform: scale(1.08);
}
.oht-cal-day.unavailable {
  background: #f5f5f5;
  color: #bbb;
  cursor: not-allowed;
}
.oht-cal-day.past {
  background: transparent;
  color: #ccc;
  cursor: not-allowed;
}
.oht-cal-day.selected-start,
.oht-cal-day.selected-end {
  background: var(--oht-blue);
  color: #fff;
  border-color: #1a8bbf;
  transform: scale(1.1);
  z-index: 1;
}
.oht-cal-day.in-range {
  background: #d4edf8;
  color: var(--oht-dark);
  border-radius: 0;
}
.oht-cal-day.selected-start { border-radius: 6px 0 0 6px; }
.oht-cal-day.selected-end   { border-radius: 0 6px 6px 0; }
.oht-cal-day.selected-start.selected-end { border-radius: 6px; }
.oht-cal-day.empty {
  background: transparent;
  cursor: default;
}
/* Holiday date overlay — orange tint on available days */
.oht-cal-day.holiday.available {
  background: #fff3e0;
  color: #bf360c;
  border-color: var(--oht-orange);
}
.oht-cal-day.holiday.available:hover {
  background: #ffe0b2;
  border-color: #e65100;
  transform: scale(1.08);
}
.oht-cal-day.holiday.in-range {
  background: #ffecc8;
}
.oht-cal-day.holiday.selected-start,
.oht-cal-day.holiday.selected-end {
  background: var(--oht-orange);
  border-color: #e65100;
}

/* Holiday surcharge row in booking summary */
.oht-holiday-surcharge-row {
  color: #e65100;
}
.oht-holiday-surcharge-row .label {
  color: #e65100;
}

/* Holiday pricing disclaimer */
.oht-holiday-disclaimer {
  margin: 14px 0 0;
  padding: 12px 16px;
  background: #fff8f0;
  border-left: 4px solid var(--oht-orange);
  border-radius: 0 6px 6px 0;
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

.oht-cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--oht-blue);
  border-radius: 50%;
}

.oht-calendar-legend {
  margin-top: 14px;
  font-size: 13px;
  color: var(--oht-gray);
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.oht-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 4px;
}
.oht-legend-dot.available   { background: #c8e6c9; }
.oht-legend-dot.unavailable { background: #f5f5f5; border: 1px solid #ddd; }
.oht-legend-dot.selected    { background: var(--oht-blue); }
.oht-legend-dot.holiday     { background: var(--oht-orange); }

/* ── Selected dates display ─────────────────────────────────────────────────── */

.oht-selected-dates-display {
  margin-top: 16px;
  padding: 14px 18px;
  background: #e8f6fd;
  border-radius: 8px;
  border-left: 4px solid var(--oht-blue);
  font-size: 15px;
  font-weight: 600;
  color: var(--oht-dark);
}

/* ── Booking Summary ────────────────────────────────────────────────────────── */

.oht-booking-summary {
  background: var(--oht-light);
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.oht-booking-summary h4 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--oht-dark);
  border-bottom: 1px solid #dde;
  padding-bottom: 10px;
}
.oht-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 14px;
  color: #555;
}
.oht-summary-row.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--oht-dark);
  border-top: 2px solid var(--oht-blue);
  margin-top: 10px;
  padding-top: 12px;
}
.oht-summary-row .label { color: var(--oht-gray); }
.oht-summary-row.total .label { color: var(--oht-dark); }

/* ── Form elements ──────────────────────────────────────────────────────────── */

.oht-form-group {
  margin-bottom: 18px;
}
.oht-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--oht-dark);
  margin-bottom: 6px;
}
.oht-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e9ecef;
  border-radius: 7px;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s;
}
.oht-form-group textarea:focus {
  outline: none;
  border-color: var(--oht-blue);
}

/* ── Payment element ────────────────────────────────────────────────────────── */

#oht-payment-element-wrap {
  margin-bottom: 20px;
  min-height: 60px;
}
#oht-payment-element {
  border: 2px solid #e9ecef;
  border-radius: 7px;
  padding: 14px;
}
.oht-payment-error {
  background: #fce4ec;
  border: 1px solid #f48fb1;
  border-radius: 7px;
  padding: 12px 16px;
  color: #c62828;
  font-size: 14px;
  margin-bottom: 16px;
}
.oht-secure-note {
  text-align: center;
  font-size: 13px;
  color: var(--oht-gray);
  margin-top: 14px;
}

/* ── Success screen ─────────────────────────────────────────────────────────── */

.oht-success-screen {
  text-align: center;
  padding: 20px;
}
.oht-success-icon {
  font-size: 64px;
  margin-bottom: 16px;
}
.oht-success-screen h2 {
  font-size: 28px;
  color: var(--oht-green);
  margin: 0 0 12px;
}
.oht-success-screen p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 12px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
#oht-success-details {
  margin-top: 20px;
  background: var(--oht-light);
  border-radius: 8px;
  padding: 18px 22px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* ── Error card ─────────────────────────────────────────────────────────────── */

.oht-booking-error-card {
  border-left: 5px solid var(--oht-red);
  background: #fff;
  border-radius: 0 var(--oht-radius) var(--oht-radius) 0;
  padding: 24px 28px;
  box-shadow: var(--oht-shadow);
}
.oht-booking-error-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.oht-booking-error-card p {
  margin: 0;
  color: #555;
  font-size: 15px;
}
.oht-booking-error-card a { color: var(--oht-blue); }

/* ── Availability widget ────────────────────────────────────────────────────── */

#oht-availability-wrap {
  max-width: 480px;
}
.oht-avail-title {
  color: var(--oht-dark);
  margin-bottom: 16px;
  font-size: 20px;
}

#oht-availability-wrap .oht-cal-day {
  font-size: 16px;
}
#oht-availability-wrap .oht-cal-header {
  font-size: 16px;
}
#oht-availability-wrap .oht-cal-title {
  font-size: 22px;
  font-weight: 700;
}
#oht-availability-wrap .oht-cal-legend {
  font-size: 15px;
}
#oht-availability-wrap h3 {
  font-size: 24px;
}

/* ── Spinner ────────────────────────────────────────────────────────────────── */

.oht-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ohtSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes ohtSpin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .oht-booking-step { padding: 20px 18px; }
  .oht-booking-welcome { padding: 22px 20px; }
  .oht-booking-welcome h2 { font-size: 20px; }
  .oht-service-price { font-size: 17px; }
  .oht-step-actions { flex-direction: column; }
  .oht-step-actions .oht-btn { width: 100%; text-align: center; }
  .oht-btn-pay { font-size: 15px; padding: 14px 20px; }
  .oht-cal-day { font-size: 13px; }
}

/* ── Repeat client notice ──────────────────────────────────────────────────── */

.oht-repeat-notice {
  background: #e8f5e9;
  border-left: 4px solid var(--oht-green);
  border-radius: 0 var(--oht-radius) var(--oht-radius) 0;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.oht-repeat-notice h3 {
  margin: 0 0 10px;
  color: var(--oht-green);
  font-size: 18px;
}
.oht-repeat-notice p {
  margin: 0 0 14px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}
.oht-repeat-notice label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--oht-dark);
  font-weight: 600;
}
.oht-repeat-notice input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  cursor: pointer;
}
.oht-repeat-contact {
  margin: 0 0 14px;
  font-size: 14px;
  color: #2d3e50;
}
.oht-repeat-contact a {
  color: var(--oht-blue);
  text-decoration: none;
  font-weight: 600;
}
.oht-repeat-contact a:hover { text-decoration: underline; }

/* ── Dog walk day chips ─────────────────────────────────────────────────────── */

#oht-walk-days-wrap {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafbfc;
}

.oht-walk-hint {
  margin: 0;
  font-size: 13px;
  color: var(--oht-gray);
}

.oht-walk-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e8f6fd;
  border: 1px solid #b3dff5;
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.oht-walk-chip:last-child { margin-bottom: 0; }

.oht-walk-chip-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--oht-dark);
  min-width: 90px;
}
.oht-walk-chip-holiday {
  font-size: 12px;
  color: #e65100;
  font-weight: 600;
}

.oht-walk-time-sel {
  flex: 1;
  min-width: 120px;
  padding: 6px 8px;
  border: 2px solid #b3dff5;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: var(--oht-dark);
  cursor: pointer;
}
.oht-walk-time-sel:focus {
  outline: none;
  border-color: var(--oht-blue);
}

.oht-walk-chip-remove {
  background: none;
  border: none;
  color: var(--oht-gray);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin-left: auto;
  flex-shrink: 0;
  transition: color 0.15s;
}
.oht-walk-chip-remove:hover { color: var(--oht-red); }
.oht-service-desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--oht-gray);
  line-height: 1.4;
}
.oht-walk-time-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--oht-gray);
  line-height: 1.5;
}

/* ── Overnight drop-off / pickup time pickers ────────────────────────────────── */

#oht-overnight-times {
  background: #fafbfc;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 14px 16px;
}

.oht-times-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.oht-time-group {
  flex: 1;
  min-width: 180px;
}

.oht-time-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--oht-dark);
  margin-bottom: 6px;
}

.oht-time-label small {
  font-weight: 400;
  color: var(--oht-gray);
  font-size: 12px;
}

.oht-time-sel {
  width: 100%;
  padding: 8px 10px;
  border: 2px solid #d1d9e0;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: var(--oht-dark);
  cursor: pointer;
  box-sizing: border-box;
}

.oht-time-sel:focus {
  outline: none;
  border-color: var(--oht-blue);
}

.oht-late-fee-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: #e65100;
  font-weight: 600;
  line-height: 1.4;
}

.oht-time-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--oht-red);
  font-weight: 600;
}

/* ── Per-chip drop-off / pickup for daycare ──────────────────────────────────── */

.oht-chip-times {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
  align-items: flex-end;
}

.oht-chip-time-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 130px;
}

.oht-chip-time-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--oht-gray);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.oht-chip-time-group select {
  padding: 5px 7px;
  border: 2px solid #b3dff5;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
  color: var(--oht-dark);
  cursor: pointer;
}

.oht-chip-time-group select:focus {
  outline: none;
  border-color: var(--oht-blue);
}

.oht-chip-late-note {
  width: 100%;
  margin: 4px 0 0;
  font-size: 11px;
  color: #e65100;
  font-weight: 600;
}

.oht-chip-time-error {
  width: 100%;
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--oht-red);
  font-weight: 600;
}

/* ── Service info card ───────────────────────────────────────────────────────── */

#oht-service-info {
  background: #e8f4fd;
  border-radius: 10px;
  padding: 16px 18px;
  color: #2d3e50;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 4px;
}

#oht-service-info strong {
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
  color: #2d3e50;
}

#oht-service-info p {
  margin: 0 0 8px;
  color: #2d3e50;
}

#oht-service-info p:last-child { margin-bottom: 0; }

#oht-service-info ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

#oht-service-info li {
  margin-bottom: 3px;
  color: #2d3e50;
}

/* ── Tip Selector (booking flow) ──────────────────────────────────────────── */

#oht-tip-wrap {
  background: #fff8f0;
  border: 1.5px solid #f7941d;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 20px;
}

.oht-tip-label {
  font-size: 15px;
  font-weight: 700;
  color: #2d3e50;
  margin: 0 0 12px;
}

.oht-tip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.oht-tip-pill {
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid #ddd;
  background: #fff;
  color: #2d3e50;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.oht-tip-pill:hover {
  border-color: #f7941d;
  color: #f7941d;
}

.oht-tip-pill.active {
  background: #f7941d;
  border-color: #f7941d;
  color: #fff;
}

.oht-tip-nothanks {
  font-size: 13px;
  color: #999;
  border-color: #ddd;
}

.oht-tip-nothanks.active {
  background: #f0f0f0;
  border-color: #ccc;
  color: #666;
}

#oht-tip-custom-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.oht-tip-dollar-prefix {
  font-size: 16px;
  font-weight: 700;
  color: #2d3e50;
}

#oht-tip-custom-input,
#oht-tip-pg-custom-input {
  width: 90px;
  padding: 8px 10px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  color: #2d3e50;
}

#oht-tip-display {
  font-size: 13px;
  color: #f7941d;
  font-weight: 600;
  margin: 6px 0 0;
  min-height: 1em;
}

#oht-setup-payment-wrap {
  margin: 16px 0 0;
}

/* ── Tip standalone page ──────────────────────────────────────────────────── */

#oht-tip-page-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}

#oht-tip-pg-custom-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

#oht-tip-pg-setup-wrap {
  margin-top: 20px;
}

#oht-tip-pg-payment-section {
  margin-top: 20px;
}
