/**
 * Booking Calendar Styles
 * 
 * Extends the main HSE styles for the booking date picker
 * and confirmation flow.
 */

/* ============================================
   Booking Calendar Container
   ============================================ */
.hse-booking-calendar {
    margin: 24px 0;
}

.hse-booking-mode-banner {
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(212, 160, 18, 0.35);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(245, 200, 66, 0.16) 0%, rgba(212, 160, 18, 0.08) 100%);
}

.hse-booking-mode-eyebrow {
    margin-bottom: 8px;
    color: var(--hse-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hse-booking-current-summary {
    display: grid;
    gap: 4px;
    color: var(--hse-text);
}

.hse-booking-current-summary strong {
    font-size: 0.95rem;
}

.hse-booking-current-summary span {
    color: var(--hse-text-secondary);
    font-size: 0.88rem;
}

.hse-booking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.hse-booking-month {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--hse-text);
}

.hse-booking-nav {
    display: flex;
    gap: 8px;
}

.hse-nav-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hse-border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hse-text-secondary);
    transition: all var(--hse-transition);
}

.hse-nav-btn:hover {
    background: var(--hse-primary-light);
    border-color: var(--hse-primary);
    color: var(--hse-primary);
}

.hse-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hse-nav-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Day Grid
   ============================================ */
.hse-day-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.hse-day-header {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--hse-text-muted);
    text-transform: uppercase;
    text-align: center;
    padding: 8px 0;
}

.hse-day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--hse-transition);
    position: relative;
}

.hse-day-cell:hover:not(.unavailable):not(.empty) {
    background: var(--hse-primary-light);
    border-color: var(--hse-primary);
}

.hse-day-cell.selected {
    background: var(--hse-primary);
    border-color: var(--hse-primary);
}

.hse-day-cell.selected .hse-day-number {
    color: white;
}

.hse-day-cell.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
}

.hse-day-cell.empty {
    background: transparent;
    cursor: default;
}

.hse-day-number {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hse-text);
}

.hse-day-availability {
    font-size: 0.6rem;
    color: var(--hse-text-muted);
    margin-top: 2px;
}

.hse-day-cell.has-am-only .hse-day-availability,
.hse-day-cell.has-pm-only .hse-day-availability {
    color: var(--hse-primary);
}

.hse-day-cell.has-full .hse-day-availability {
    color: var(--hse-success);
}

/* ============================================
   Slot Picker
   ============================================ */
.hse-slot-picker {
    margin: 20px 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hse-slot-picker.visible {
    opacity: 1;
    max-height: 300px;
}

.hse-slot-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hse-text-secondary);
    margin-bottom: 12px;
    text-align: center;
}

.hse-slot-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hse-slot-btn {
    flex: 1;
    min-width: 120px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--hse-border);
    border-radius: var(--hse-radius);
    cursor: pointer;
    transition: all var(--hse-transition);
    text-align: center;
}

.hse-slot-btn:hover:not(:disabled) {
    background: var(--hse-primary-light);
    border-color: var(--hse-primary);
}

.hse-slot-btn.selected {
    background: var(--hse-primary);
    border-color: var(--hse-primary);
}

.hse-slot-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.hse-slot-btn.selected .hse-slot-label,
.hse-slot-btn.selected .hse-slot-time {
    color: white;
}

.hse-slot-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hse-text);
    margin-bottom: 4px;
}

.hse-slot-time {
    font-size: 0.75rem;
    color: var(--hse-text-muted);
}

/* Travel Warning */
.hse-travel-warning {
    display: none;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--hse-primary);
}

.hse-travel-warning.visible {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.hse-travel-warning-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* ============================================
   Booking Summary Card
   ============================================ */
.hse-booking-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hse-border);
    border-radius: var(--hse-radius);
    padding: 20px;
    margin: 24px 0;
}

.hse-booking-summary-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hse-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hse-booking-detail {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--hse-border);
}

.hse-booking-detail:last-child {
    border-bottom: none;
}

.hse-booking-detail-label {
    font-size: 0.85rem;
    color: var(--hse-text-muted);
}

.hse-booking-detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--hse-text);
    text-align: right;
}

.hse-booking-detail-value.highlight {
    color: var(--hse-primary);
    font-weight: 600;
}

/* ============================================
   Booking Confirmation Screen
   ============================================ */
.hse-booking-confirmed {
    text-align: center;
    padding: 20px 0;
}

.hse-booking-confirmed-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hse-success);
    font-size: 40px;
}

.hse-booking-ref {
    display: inline-block;
    background: var(--hse-bg-solid);
    border: 1px solid var(--hse-border);
    border-radius: 8px;
    padding: 12px 24px;
    margin: 16px 0;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hse-primary);
    letter-spacing: 1px;
}

.hse-booking-next-steps {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--hse-radius);
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.hse-booking-next-steps h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hse-text);
    margin: 0 0 12px;
}

.hse-booking-next-steps ol {
    margin: 0;
    padding-left: 20px;
}

.hse-booking-next-steps li {
    font-size: 0.85rem;
    color: var(--hse-text-secondary);
    padding: 4px 0;
}

/* WhatsApp Button */
.hse-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--hse-whatsapp);
    color: white;
    border: none;
    border-radius: var(--hse-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--hse-transition);
}

.hse-whatsapp-btn:hover {
    background: #20c05c;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.hse-whatsapp-btn svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   Loading States
   ============================================ */
.hse-calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--hse-text-secondary);
}

.hse-calendar-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--hse-border);
    border-top-color: var(--hse-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 480px) {
    .hse-day-grid {
        gap: 4px;
    }

    .hse-day-cell {
        border-radius: 8px;
    }

    .hse-day-number {
        font-size: 0.85rem;
    }

    .hse-day-availability {
        display: none;
        /* Hide on mobile for cleaner look */
    }

    .hse-slot-options {
        flex-direction: column;
    }

    .hse-slot-btn {
        min-width: 100%;
    }
}

/* ============================================
   Booking Success Confirmation - Premium UI
   ============================================ */
.hse-booking-success {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin: 20px 0;
}

.hse-success-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hse-success-title {
    color: #10b981;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hse-success-details {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.hse-success-date {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.hse-success-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.hse-success-ref {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-family: monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.hse-success-ref span {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 8px;
}

.hse-success-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   Booking Section Button Layout Fix
   ============================================ */
.hse-booking-section {
    margin-bottom: 24px;
}

#hse-booking-container {
    margin-bottom: 20px;
}

/* Override for Book Job button when acting as Close Calendar */
#hse-book-job-btn.hse-btn-outline {
    margin-top: 16px;
    margin-bottom: 16px;
}

/* ============================================
   Clean Booking Actions Layout
   ============================================ */
.hse-booking-actions-clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hse-btn-confirm {
    width: 100%;
    font-weight: bold;
    background: linear-gradient(135deg, #d4a012 0%, #f5c842 100%);
    border: none;
    padding: 16px 24px;
    font-size: 1rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(212, 160, 18, 0.3);
    transition: all 0.3s ease;
}

.hse-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 160, 18, 0.4);
}

.hse-text-link-whatsapp {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.hse-text-link-whatsapp:hover {
    color: #25D366;
}

.hse-text-link-whatsapp strong {
    color: #25D366;
    text-decoration: underline;
}

.hse-text-link-back {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.hse-text-link-back:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   MICRO-ANIMATIONS & POLISH
   ============================================ */

/* 1. Confirm Button Loading State */
.hse-btn-confirm.loading {
    pointer-events: none;
    opacity: 0.85;
}

.hse-btn-confirm .hse-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: confirmSpin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes confirmSpin {
    to {
        transform: rotate(360deg);
    }
}

/* 2. Confirmation Screen — Staggered Entrance */
.hse-booking-success {
    animation: successSlideUp 0.4s ease-out forwards;
}

.hse-booking-success .hse-success-checkmark {
    opacity: 0;
    animation: checkmarkPop 0.4s ease-out 0.2s forwards;
}

.hse-booking-success .hse-success-title {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out 0.4s forwards;
}

.hse-booking-success .hse-success-details {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out 0.55s forwards;
}

.hse-booking-success .hse-success-ref {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out 0.7s forwards;
}

.hse-booking-success .hse-status-pill {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out 0.85s forwards;
}

.hse-booking-success .hse-success-note {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out 1.0s forwards;
}

.hse-booking-success .hse-what-next {
    opacity: 0;
    animation: fadeInUp 0.3s ease-out 1.15s forwards;
}

@keyframes successSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkmarkPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    60% {
        opacity: 1;
        transform: scale(1.15);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Animated SVG Checkmark */
.hse-success-checkmark {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    padding: 4px;
    /* Prevent stroke clipping */
    box-sizing: content-box;
}

.hse-success-checkmark svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    /* Allow stroke to render outside viewBox */
}

.hse-checkmark-circle {
    stroke: #10b981;
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: drawCircle 0.5s ease-out 0.3s forwards;
}

.hse-checkmark-check {
    stroke: #10b981;
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: drawCheck 0.3s ease-out 0.7s forwards;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* 4. Slot Picker — Slide In Animation */
.hse-slot-picker {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out;
    transform: translateY(-10px);
}

.hse-slot-picker.visible {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

/* 5. Date Selection — Pop Animation */
.hse-day-cell {
    transition: transform 0.15s ease-out, background-color 0.2s ease, box-shadow 0.2s ease;
}

.hse-day-cell:not(.unavailable):not(.empty):hover {
    transform: scale(1.05);
}

.hse-day-cell:not(.unavailable):not(.empty):active {
    transform: scale(0.95);
}

.hse-day-cell.selected {
    animation: datePop 0.25s ease-out;
}

@keyframes datePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
    }
}

/* 6. "What Happens Next" Section */
/* 6. "What Happens Next" Section */
.hse-what-next {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hse-what-next h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hse-text);
    margin: 0 0 16px;
}

.hse-steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.hse-step-item {
    display: flex;
    align-items: flex-start;
    /* Align to top for multiline text */
    gap: 12px;
}

.hse-step-num {
    background: rgba(255, 255, 255, 0.1);
    color: var(--hse-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
    /* Visual alignment with text */
}

.hse-step-text {
    font-size: 0.9rem;
    color: var(--hse-text-secondary);
    line-height: 1.4;
}

.hse-what-next-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hse-link-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    background: white;
    color: var(--hse-bg);
    border-radius: var(--hse-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hse-link-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

.hse-what-next h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.hse-steps-list {
    margin-bottom: 16px;
}

.hse-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.hse-step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hse-step-text {
    flex: 1;
    line-height: 1.4;
}

.hse-what-next-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.hse-what-next-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.hse-what-next-links a:hover {
    color: #fff;
}

.hse-what-next-links a.hse-link-primary {
    color: #25D366;
}

.hse-what-next-links a.hse-link-primary:hover {
    color: #2be378;
}

/* 7. Button Hover & Press States */
.hse-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hse-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hse-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hse-btn-confirm:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 160, 18, 0.2);
}

/* Slot buttons hover/press */
.hse-slot-btn {
    transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hse-slot-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hse-slot-btn:not(:disabled):active {
    transform: translateY(0);
}

/* ============================================
   Multi-Day Booking Styles
   ============================================ */

/* Day badge on selected days */
.hse-day-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--hse-primary);
    color: #000;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Multi-day summary container */
.hse-multiday-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hse-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.hse-multiday-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hse-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hse-multiday-title.hse-complete {
    color: #2be378;
}

.hse-multiday-status {
    font-size: 0.9rem;
    color: var(--hse-text-secondary);
    margin-bottom: 12px;
}

.hse-remaining {
    color: var(--hse-primary);
    font-weight: 500;
}

/* Selected dates list */
.hse-selected-dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.hse-selected-date-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(212, 160, 18, 0.1);
    border: 1px solid rgba(212, 160, 18, 0.2);
    border-radius: 8px;
}

.hse-date-day {
    font-weight: 600;
    color: var(--hse-primary);
    min-width: 50px;
}

.hse-date-formatted {
    color: var(--hse-text);
    flex: 1;
}

.hse-date-slot {
    font-size: 0.85rem;
    color: var(--hse-text-muted);
}

/* ============================================
   Address Capture / Confirmation Screen
   ============================================ */
.hse-confirm-screen {
    animation: fadeInUp 0.3s ease-out;
}

.hse-confirm-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.hse-confirm-title {
    font-size: 1.5rem;
    /* H2 size equivalent */
    font-weight: 700;
    color: var(--hse-text);
    margin-bottom: 24px;
}

.hse-slot-summary-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--hse-border);
    border-radius: var(--hse-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
    /* Left align */
    align-items: center;
    gap: 16px;
    /* Gap between icon and text */
}

.hse-summary-icon-large {
    font-size: 2rem;
    line-height: 1;
}

.hse-summary-details {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
}

.hse-summary-date {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
}

.hse-summary-time {
    color: var(--hse-text-muted);
    font-size: 0.9rem;
}

.hse-contact-review {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 0 16px;
}

.hse-review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hse-review-row:last-child {
    border-bottom: none;
}

.hse-review-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Force left alignment */
    gap: 2px;
}

.hse-review-label {
    font-size: 0.75rem;
    color: var(--hse-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hse-review-value {
    font-size: 0.95rem;
    color: var(--hse-text);
    font-weight: 500;
}

.hse-edit-link {
    font-size: 0.8rem;
    color: var(--hse-primary);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}

.hse-edit-link:hover {
    opacity: 1;
    background: rgba(245, 158, 11, 0.1);
}

.hse-address-section {
    margin-bottom: 28px;
}

/* Address Field */
.hse-field-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hse-text);
    margin-bottom: 8px;
    text-align: left;
    /* Ensure label is left aligned */
}

/* .hse-req removed as per request */

.hse-input-text-lg {
    width: 100%;
    /* hse-input base styles handle background/border */
    padding: 14px;
}

.hse-input-text-lg::placeholder {
    color: #64748b;
    /* Lighter/Greyer placeholder */
    opacity: 0.8;
}

.hse-field-error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 20px;
    font-weight: 500;
    text-align: left;
}

/* Edit Mode Input */
.hse-edit-mode {
    width: 100%;
    padding: 4px 0;
    text-align: left;
}

.hse-edit-mode label {
    display: block;
    font-size: 0.75rem;
    color: var(--hse-primary);
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.hse-edit-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--hse-primary);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.hse-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.hse-booking-legal-note {
    margin: 0;
    max-width: 520px;
    align-self: center;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--hse-text-muted);
}

.hse-booking-legal-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(148, 163, 184, 0.75);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.hse-booking-legal-link:hover,
.hse-booking-legal-link:focus-visible {
    color: var(--hse-text-secondary);
    text-decoration-color: currentColor;
}

/* Status Pill */
.hse-status-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--hse-text);
}

.hse-pill-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
/* ============================================
   Availability Dots Refinement
   ============================================ */

/* Container for the 3 dots */
.hse-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    /* Space between dots */
    margin-top: 4px;
    height: 8px;
    /* Fixed height to prevent layout shifts */
    align-items: center;
}

/* Individual Dot */
.hse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
    background-color: transparent;
    /* Default */
    transition: transform 0.2s ease;
}

/* Colors */
.hse-dot.available {
    background-color: #10B981;
    /* Green */
}

.hse-dot.unavailable {
    background-color: #ef4444;
    /* Red */
    opacity: 0.4;
    /* Slight dim for unavailable to reduce visual noise? User said "red", didn't say dimmed. Keeping red but maybe slightly softer? */
    opacity: 1;
    /* Stick to user request: Red. */
}

/* Hover effect on day cell expands dots slightly? Optional */
.hse-day-cell:hover .hse-dot {
    transform: scale(1.2);
}

/* Selected State */
.hse-day-cell.selected .hse-dot {
    background-color: #ffffff;
    /* Turn white on selected dark background? Or keep colors? */
    /* User didn't specify, but usually contrast is needed. 
       If background is blue/dark, green/red dots visible. 
       If background is white (default state), green/red visible.
       Selected background in CSS? Typically a dark blue or brand color.
       Let's assume green/red punch through. */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
    /* Add ring for contrast */
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .hse-dots {
        gap: 3px;
    }

    .hse-dot {
        width: 5px;
        height: 5px;
    }

    /* Ensure not hidden */
    .hse-day-availability {
        display: block !important;
        /* Override any previous mobile hide */
    }
}
