/* ===== BOOKING PAGE STYLES ===== */

/* ----- BOOKING HERO ----- */
.booking-hero {
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    text-align: center;
    background: #1A3A2E;
}

/* Background Image using ::before */
.booking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/temp5.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Dark overlay for text readability */
.booking-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 46, 0.78);
    z-index: 1;
}

/* Container sits on top of the overlay */
.booking-hero .container {
    position: relative;
    z-index: 2;
}

.booking-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.booking-hero .accent-line {
    width: 60px;
    height: 3px;
    background: #c89f6c;
    margin: 12px auto 20px;
    border-radius: 4px;
}

.booking-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ----- BOOKING CONTAINER ----- */
.booking-container {
    padding: 40px 0 80px;
    flex: 1;
}

.booking-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(26, 77, 94, 0.08);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #eef2f4;
    transform: translateY(-50%);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
    position: relative;
}

.progress-step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #8a9aa8;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.progress-step.active .step-circle {
    background: #1a4d5e;
    color: #fff;
    border-color: #1a4d5e;
    box-shadow: 0 4px 12px rgba(26, 77, 94, 0.25);
}

.progress-step.completed .step-circle {
    background: #c89f6c;
    color: #fff;
    border-color: #c89f6c;
}

.progress-step .step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #8a9aa8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-step.active .step-label {
    color: #1a4d5e;
}

.progress-step.completed .step-label {
    color: #c89f6c;
}

/* Steps */
.booking-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.booking-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-step h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1A3A2E;
    margin-bottom: 8px;
}

.booking-step .step-description {
    color: #5a6f7e;
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Date & Time Selection */
.date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 30px;
}

.date-btn {
    padding: 12px 4px;
    border: 1px solid #eef2f4;
    border-radius: 10px;
    background: #f9fbfc;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #1e1e2a;
}

.date-btn:hover {
    border-color: #c89f6c;
    background: #fdf6f0;
}

.date-btn.selected {
    border-color: #1A3A2E;
    background: #1A3A2E;
    color: #fff;
}

.date-btn .day {
    font-weight: 600;
    font-size: 1rem;
}

.date-btn .date-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

.date-btn .month {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #8a9aa8;
}

.date-btn.selected .month {
    color: rgba(255, 255, 255, 0.7);
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.time-btn {
    padding: 12px;
    border: 1px solid #eef2f4;
    border-radius: 10px;
    background: #f9fbfc;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1e1e2a;
}

.time-btn:hover {
    border-color: #c89f6c;
    background: #fdf6f0;
}

.time-btn.selected {
    border-color: #1A3A2E;
    background: #1A3A2E;
    color: #fff;
}

.time-btn .slot-label {
    display: block;
    font-weight: 500;
}

.time-btn .slot-duration {
    font-size: 0.7rem;
    color: #8a9aa8;
}

.time-btn.selected .slot-duration {
    color: rgba(255, 255, 255, 0.7);
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e1e2a;
    margin-bottom: 6px;
}

.form-group label .required {
    color: #c0392b;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9e2e8;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus {
    outline: none;
    border-color: #1A3A2E;
    box-shadow: 0 0 0 3px rgba(26, 58, 46, 0.15);
}

.form-group .hint {
    font-size: 0.8rem;
    color: #8a9aa8;
    margin-top: 4px;
}

/* ===== NAME + SURNAME SPLIT ===== */
.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group.half {
    flex: 1 1 calc(50% - 8px);
    min-width: 160px;
}

@media (max-width: 480px) {
    .form-row .form-group.half {
        flex: 1 1 100%;
        min-width: unset;
    }
}

/* Navigation Buttons */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eef2f4;
}

.step-nav .btn-back {
    background: none;
    border: none;
    color: #5a6f7e;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.step-nav .btn-back:hover {
    color: #1a4d5e;
}

.step-nav .btn-next {
    padding: 14px 40px;
}

/* Confirmation */
.confirmation-details {
    background: #f9fbfc;
    border-radius: 16px;
    padding: 24px 28px;
    margin: 20px 0 30px;
    border-left: 4px solid #c89f6c;
}

.confirmation-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f4;
}

.confirmation-details .detail-row:last-child {
    border-bottom: none;
}

.confirmation-details .detail-label {
    font-weight: 500;
    color: #5a6f7e;
}

.confirmation-details .detail-value {
    font-weight: 600;
    color: #1a4d5e;
    text-align: right;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.confirmation-actions .btn-secondary,
.confirmation-actions .btn-primary {
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.confirmation-actions .btn-danger {
    background: transparent;
    color: #c0392b;
    border: 2px solid #c0392b;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.confirmation-actions .btn-danger:hover {
    background: #c0392b;
    color: #fff;
}

/* Success State */
.success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 16px;
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== ERROR MESSAGES ===== */
.error-message {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.form-group input.error {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15) !important;
}

.form-group {
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .error-message {
        font-size: 0.8rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .booking-hero {
        padding: 80px 0 100px;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .booking-card {
        padding: 28px 20px;
    }

    .date-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-hero h1 {
        font-size: 2.4rem;
    }

    .booking-hero {
        padding: 60px 0 80px;
        min-height: 300px;
    }

    .progress-step .step-label {
        display: none;
    }

    .step-nav {
        flex-direction: column;
        gap: 12px;
    }

    .step-nav .btn-next {
        width: 100%;
        text-align: center;
    }

    .confirmation-details .detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .confirmation-details .detail-value {
        text-align: left;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .btn-secondary,
    .confirmation-actions .btn-primary,
    .confirmation-actions .btn-danger {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .date-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .time-grid {
        grid-template-columns: 1fr 1fr;
    }

    .booking-hero h1 {
        font-size: 2rem;
    }

    .booking-hero {
        padding: 50px 0 60px;
        min-height: 250px;
    }

    .booking-hero p {
        font-size: 1rem;
    }

    .booking-container {
        padding: 20px 0 60px;
    }

    .booking-card {
        padding: 20px 16px;
    }

    .booking-step h2 {
        font-size: 1.4rem;
    }
}