/* Dog Hotel Booking Plugin — dhb-public.css */

/* ── Wrapper ── */
.ddh-booking-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 900px; margin: 0 auto; color: #2c3e50; }

/* ── Step Indicators ── */
.ddh-steps { display: flex; gap: 0; margin-bottom: 30px; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.ddh-step { flex: 1; padding: 14px 8px; text-align: center; background: #ecf0f1; position: relative; transition: background .3s; cursor: default; }
.ddh-step.active { background: linear-gradient(135deg, #1a6fa0, #2ecc71); color: #fff; }
.ddh-step.completed { background: #27ae60; color: #fff; }
.ddh-step .step-num { display: inline-block; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.25); line-height: 28px; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.ddh-step .step-label { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Section Titles ── */
.ddh-section-title { font-size: 22px; font-weight: 700; margin: 0 0 20px; color: #1a6fa0; border-bottom: 2px solid #e8f4fd; padding-bottom: 10px; }
.ddh-sub-title { font-size: 17px; font-weight: 600; margin: 20px 0 10px; color: #2c3e50; }

/* ── Field Groups ── */
.ddh-field-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; }
.ddh-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: #555; }
.ddh-field label .req { color: #e74c3c; }
.ddh-input { width: 100%; padding: 10px 12px; border: 1.5px solid #dde3ec; border-radius: 8px; font-size: 14px; transition: border-color .2s, box-shadow .2s; background: #fff; box-sizing: border-box; }
.ddh-input:focus { border-color: #1a6fa0; box-shadow: 0 0 0 3px rgba(26,111,160,.15); outline: none; }
.ddh-input-sm { padding: 6px 10px; font-size: 13px; }

/* ── Radio Cards ── */
.ddh-radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.ddh-radio-card { display: flex; align-items: center; gap: 8px; border: 2px solid #dde3ec; border-radius: 10px; padding: 12px 18px; cursor: pointer; transition: all .2s; font-size: 14px; font-weight: 600; }
.ddh-radio-card input { accent-color: #1a6fa0; }
.ddh-radio-card:has(input:checked) { border-color: #1a6fa0; background: #e8f4fd; }

/* ── Checkbox Cards ── */
.ddh-checkbox-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ddh-checkbox-card { display: flex; align-items: center; gap: 8px; border: 2px solid #dde3ec; border-radius: 10px; padding: 12px 18px; cursor: pointer; transition: all .2s; font-size: 14px; }
.ddh-checkbox-card:has(input:checked) { border-color: #27ae60; background: #edf7ee; }
.ddh-checkbox-card-sm { display: flex; align-items: center; gap: 8px; border: 1.5px solid #dde3ec; border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 13px; margin-bottom: 8px; transition: all .2s; }
.ddh-checkbox-card-sm:has(input:checked) { border-color: #27ae60; background: #edf7ee; }
.ddh-checkbox-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.ddh-checkboxes { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Buttons ── */
.ddh-btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 24px; border-radius: 9px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all .2s; }
.ddh-btn-primary { background: linear-gradient(135deg, #1a6fa0, #148a51); color: #fff; }
.ddh-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.ddh-btn-success { background: #27ae60; color: #fff; }
.ddh-btn-success:hover { background: #219150; }
.ddh-btn-ghost { background: transparent; color: #666; border: 1.5px solid #dde3ec; }
.ddh-btn-ghost:hover { background: #f5f7fa; }
.ddh-btn-outline { background: transparent; color: #1a6fa0; border: 1.5px solid #1a6fa0; }
.ddh-btn-outline:hover { background: #1a6fa0; color: #fff; }
.ddh-btn-sm { padding: 6px 14px; font-size: 13px; }
.ddh-btn-large { padding: 16px 36px; font-size: 17px; }
.ddh-btn:disabled { opacity: .6; cursor: not-allowed; }
.ddh-nav-row { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #eee; }

/* ── Dog Panels ── */
.ddh-dog-panel { border: 1.5px solid #dde3ec; border-radius: 12px; margin-bottom: 20px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.ddh-dog-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: linear-gradient(135deg, #1a6fa0, #2980b9); color: #fff; }
.ddh-dog-title { font-size: 16px; font-weight: 700; }
.ddh-dog-body { padding: 20px; }
.ddh-flex-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* ── Accordions ── */
.ddh-accordion { border: 1.5px solid #e8eef3; border-radius: 10px; margin-top: 16px; }
.ddh-accordion summary { padding: 12px 16px; cursor: pointer; font-weight: 600; font-size: 14px; color: #2c3e50; list-style: none; display: flex; align-items: center; gap: 8px; }
.ddh-accordion summary::-webkit-details-marker { display: none; }
.ddh-accordion summary::before { content: '▶'; font-size: 11px; transition: transform .2s; }
.ddh-accordion[open] summary::before { transform: rotate(90deg); }
.ddh-accordion-body { padding: 16px; border-top: 1px solid #e8eef3; background: #f9fbfd; }

/* ── Meal table ── */
.ddh-meal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ddh-meal-table th { padding: 8px; background: #f0f4f8; text-align: left; font-weight: 600; }
.ddh-meal-table td { padding: 6px; }

/* ── Transport result ── */
.ddh-transport-result { background: #e8f4fd; border: 1.5px solid #1a6fa0; border-radius: 10px; padding: 14px 18px; margin-top: 12px; font-size: 14px; }
.ddh-transport-result p { margin: 4px 0; }

/* ── Availability bar ── */
.ddh-avail-bar { padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.ddh-avail-green  { background: #edf7ee; color: #1e7e34; border: 1px solid #b8dfc0; }
.ddh-avail-yellow { background: #fff8e1; color: #856404; border: 1px solid #ffd97d; }
.ddh-avail-red    { background: #fde8e8; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Vacc alerts ── */
.ddh-vacc-ok      { color: #27ae60; font-size: 12px; margin-top: 4px; }
.ddh-vacc-exp     { color: #e74c3c; font-size: 12px; font-weight: 700; margin-top: 4px; }
.ddh-vacc-warn    { color: #e67e22; font-size: 12px; font-weight: 600; margin-top: 4px; }

/* ── Review box ── */
.ddh-review-box { background: #f9fbfd; border: 1.5px solid #dde3ec; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.ddh-review-row { display: flex; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.ddh-review-row strong { min-width: 160px; color: #555; }

/* ── Price summary ── */
.ddh-price-summary { background: linear-gradient(135deg, #f0f9ff, #f0fdf4); border: 1.5px solid #b8dfc0; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.ddh-breakdown-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; border-bottom: 1px solid rgba(0,0,0,.06); }
.ddh-total-row { display: flex; justify-content: space-between; font-size: 20px; padding-top: 12px; margin-top: 8px; border-top: 2px solid #27ae60; }
.ddh-hint { font-size: 12px; color: #888; margin: 6px 0 0; }

/* ── Alerts ── */
.ddh-alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.ddh-alert-error { background: #fde8e8; border: 1px solid #f5c6cb; color: #721c24; }
.ddh-alert-success { background: #edf7ee; border: 1px solid #b8dfc0; color: #155724; }

/* ── Success state ── */
.ddh-success-box { text-align: center; padding: 50px 30px; background: linear-gradient(135deg, #f0fdf4, #e8f4fd); border-radius: 16px; border: 2px solid #27ae60; }
.ddh-success-icon { font-size: 60px; margin-bottom: 16px; }
.ddh-success-box h2 { color: #1e7e34; font-size: 28px; }

/* ── Pay choice ── */
.ddh-pay-choice { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

/* ── Room service ── */
.ddh-rs-row { display: grid; grid-template-columns: 1fr 100px 70px auto; gap: 8px; align-items: center; margin-bottom: 8px; }

@media (max-width: 600px) {
 .ddh-steps .step-label { display: none; }
 .ddh-field-group { grid-template-columns: 1fr; }
 .ddh-rs-row { grid-template-columns: 1fr; }
}

/* ── Flatpickr DDH Theme ── */
.flatpickr-calendar {
 border-radius: 12px !important;
 box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
 border: 1.5px solid #6db33f !important;
 font-family: 'Segoe UI', Arial, sans-serif !important;
 overflow: hidden;
}
.flatpickr-months {
 background: linear-gradient(135deg, #4a8f27, #6db33f) !important;
 border-radius: 10px 10px 0 0;
 padding: 4px 0;
}
.flatpickr-months .flatpickr-month,
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
 color: #fff !important;
 fill: #fff !important;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
 color: #e0f3cc !important;
 fill: #e0f3cc !important;
}
.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
 fill: #fff !important;
}
.flatpickr-current-month {
 color: #fff !important;
 font-weight: 700 !important;
}
.flatpickr-current-month select,
.flatpickr-current-month .flatpickr-monthDropdown-months {
 background: rgba(255,255,255,.2) !important;
 color: #fff !important;
 -webkit-text-fill-color: #fff !important;
 border: none !important;
 border-radius: 6px;
 font-weight: 600;
 -webkit-appearance: menulist !important;
 appearance: menulist !important;
}
.flatpickr-current-month select option,
.flatpickr-current-month .flatpickr-monthDropdown-months option {
 color: #333 !important;
 -webkit-text-fill-color: #333 !important;
 background: #fff !important;
 font-weight: 500;
}
.flatpickr-current-month input.cur-year {
 color: #fff !important;
 font-weight: 700 !important;
}
span.flatpickr-weekday {
 color: #4a8f27 !important;
 font-weight: 700 !important;
 font-size: 12px;
}
.flatpickr-day {
 border-radius: 8px !important;
 font-weight: 500;
 transition: all .15s ease;
}
.flatpickr-day:hover {
 background: #e0f3cc !important;
 border-color: #6db33f !important;
 color: #2c3e2d !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
 background: #6db33f !important;
 border-color: #4a8f27 !important;
 color: #fff !important;
 font-weight: 700;
}
.flatpickr-day.today {
 border-color: #6db33f !important;
}
.flatpickr-day.today:hover {
 background: #6db33f !important;
 color: #fff !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
 color: #ccc !important;
}
