/* ============================
   BOOKING PAGE STYLES
   Blackish Theme matching package.php
============================ */

/* Booking Header */
.booking-header {
    width: 100%;
    padding: 100px 0 60px;
    text-align: center;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.booking-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.booking-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.booking-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-header h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    color: white;
}

.booking-desc {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 35px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.booking-desc strong {
    color: white;
    font-weight: 600;
}

/* Booking Progress */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #eef0f3;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-step.active .step-number {
    background: #000;
    color: white;
    border-color: #000;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #777;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.progress-line {
    width: 80px;
    height: 2px;
    background: #ddd;
    margin: 0 10px;
}

.progress-step.active .step-label {
    color: #000;
    font-weight: 600;
}

/* Main Booking Container */
.booking-main-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 80px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin-top: 120px;
}

/* Booking Cards */
.booking-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header i {
    color: #000;
    font-size: 1.5rem;
}

.card-header h3 {
    font-size: 1.4rem;
    color: #1d1d1d;
    margin: 0;
    font-weight: 700;
}

.card-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
}

/* Date Input */
.date-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #1d1d1d;
    background: #fafafa;
    transition: all 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    background: white;
}

.date-hint,
.time-hint,
.guest-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    border: 1px solid #eee;
}

.date-hint i,
.time-hint i,
.guest-note i {
    color: #000;
    font-size: 1rem;
}

/* Time Slot Button */
.time-slot-wrapper {
    margin: 20px 0;
}

.time-slot-btn {
    width: 100%;
    padding: 20px;
    background: #fafafa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.1rem;
    color: #555;
    transition: all 0.3s ease;
    cursor: pointer;
}

.time-slot-btn:not(:disabled):hover {
    background: #f0f0f0;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.time-slot-btn.active {
    background: #f8f8f8;
    border: 2px solid #000;
    color: #000;
    font-weight: 600;
}

.time-slot-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.time-slot-btn i {
    font-size: 1.3rem;
    color: #666;
}

.time-slot-btn.active i {
    color: #000;
}

.time-badge {
    background: #000;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Guest Selection */
.guest-selection .card-content {
    padding-top: 10px;
}

.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.guest-row:last-child {
    border-bottom: none;
}

.guest-info {
    display: flex;
    flex-direction: column;
}

.guest-label {
    font-weight: 600;
    color: #1d1d1d;
    margin-bottom: 5px;
    font-size: 15px;
}

.guest-price {
    font-size: 0.9rem;
    color: #666;
}

.guest-counter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.counter-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover:not(:disabled) {
    background: #000;
    border-color: #000;
    color: white;
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.guest-input {
    width: 60px;
    text-align: center;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1d;
    background: #fafafa;
}

.guest-input:focus {
    outline: none;
    border-color: #000;
    background: white;
}

.guest-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Booking Summary Card */
.booking-summary-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    position: sticky;
    top: 100px;
}

.booking-summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #000;
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.summary-header i {
    color: #000;
    font-size: 1.8rem;
}

.summary-header h3 {
    font-size: 1.5rem;
    color: #1d1d1d;
    margin: 0;
    font-weight: 700;
}

.summary-details {
    margin-top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.item-label {
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
}

.item-value {
    color: #1d1d1d;
    font-weight: 600;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 60%;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.item-value i {
    color: #000;
    font-size: 1rem;
}

.placeholder {
    color: #999;
    font-weight: 400;
    font-style: italic;
}

.package-title {
    font-size: 1rem;
    color: #1d1d1d;
    text-align: right;
    line-height: 1.4;
}

.item-value.code {
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 25px 0;
}

/* Price Breakdown */
.price-breakdown {
    margin: 20px 0;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    color: #666;
    font-size: 0.95rem;
}

.breakdown-row.service {
    color: #000;
    font-weight: 600;
    border-top: 1px dashed #e0e0e0;
    padding-top: 15px;
    margin-top: 15px;
}

/* Total Amount */
/* Total Amount */
.total-amount {
    display: flex;
    flex-direction: column;
    /* Force Stack to prevent overlap */
    gap: 5px;
    /* Space between Label and Price */
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-radius: 12px;
    border: 1px solid #e8e8e8;
}

.total-amount span:first-child {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    align-self: flex-start;
    /* Label on Left */
    margin-bottom: 5px;
}

.total-price {
    align-self: flex-end;
    /* Price on Right */
    display: flex;
    align-items: baseline;
    gap: 20px;
    /* Increased gap between RM and Number */
}

.total-price .currency {
    font-size: 1.2rem;
    color: #000;
    font-weight: 600;
}

.total-price h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 2rem;
    color: #1d1d1d;
    margin: 0;
    font-weight: 700;
    word-break: break-word;
}

/* Booking Terms */
.booking-terms {
    margin: 25px 0;
    padding: 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.term-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.9rem;
}

.term-item i {
    color: #000;
    font-size: 1rem;
}

/* Continue Button */
.continue-btn {
    width: 100%;
    padding: 18px;
    background: #000;
    color: white;
    border: 2px solid #000;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 20px;
}

.continue-btn:hover:not(:disabled) {
    background: white;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.continue-btn.active:disabled {
    opacity: 1;
    cursor: pointer;
}

.continue-btn:disabled {
    background: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #666;
}

.continue-btn i {
    transition: transform 0.3s ease;
}

.continue-btn:hover:not(:disabled) i {
    transform: translateX(5px);
}

.security-note {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.security-note i {
    color: #000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .booking-main-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .booking-summary-card {
        position: static;
    }

    .booking-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .booking-header {
        padding: 80px 0 40px;
    }

    .booking-header h1 {
        font-size: 32px;
    }

    .booking-desc {
        font-size: 15px;
        padding: 0 15px;
    }

    .booking-tag {
        font-size: 13px;
        padding: 8px 22px;
    }

    .booking-progress {
        gap: 10px;
        padding: 20px 15px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .step-label {
        font-size: 12px;
    }

    .progress-line {
        width: 40px;
    }

    .booking-main-container {
        width: 95%;
        padding: 0 15px;
    }

    .booking-card {
        padding: 25px;
    }

    .card-header h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .booking-header {
        padding: 70px 0 30px;
    }

    .booking-header h1 {
        font-size: 28px;
    }

    .booking-desc {
        font-size: 14px;
    }

    .booking-tag {
        font-size: 12px;
        padding: 6px 18px;
    }

    .booking-progress {
        flex-wrap: wrap;
        gap: 15px;
    }

    .progress-step {
        flex: 1;
        min-width: 80px;
    }

    .booking-card {
        padding: 20px;
    }

    .guest-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        text-align: center;
    }

    .guest-counter {
        justify-content: center;
    }

    .total-amount {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        text-align: center;
    }

    .total-price {
        justify-content: center;
    }

    .continue-btn {
        padding: 16px;
        font-size: 1rem;
    }
}

.time-slot-btn.fixed {
    cursor: default;
    opacity: 0.85;
    border-style: dashed;
}

.time-badge {
    background: #333;
    color: #fff;
    font-size: 0.75rem;
}

/* Time Slot Selection Options */
.time-slot-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.time-slot-option {
    padding: 18px 12px;
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #444;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.time-slot-option::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 1.1rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.time-slot-option:hover {
    background: #fff;
    border-color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.time-slot-option:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.time-slot-option.active {
    background: #000;
    border-color: #000;
    color: #fff !important;
    transform: scale(1.02);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.time-slot-option.active::before {
    opacity: 1;
    font-weight: 900;
    color: #fff;
}

@media (max-width: 480px) {
    .time-slot-container {
        grid-template-columns: repeat(2, 1fr);
    }
}