/* General Body and Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    background-color: #f4f7f6;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

/* Main Container */
#mainContent {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

/* Logo */
.logo-img {
    max-height: 80px;
    object-fit: contain;
}

/* Booking Card Styling */
.booking-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.booking-card h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
}

.booking-card h4 {
    font-size: 1rem;
    font-weight: 400;
    color: #7f8c8d;
}

.booking-card h5 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #34495e;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dce4e3;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fdfdfd;
}

.form-control:focus,
.form-select:focus {
    border-color: #a9543c;
    box-shadow: 0 0 0 3px rgba(169, 84, 60, 0.15);
    outline: none;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f7f6;
    color: #34495e;
    border: 1px solid #dce4e3;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.quantity-btn:hover,
.quantity-btn:focus,
.quantity-btn:active {
    background-color: #a9543c !important;
    color: #fff !important;
    border-color: #a9543c !important;
    box-shadow: 0 0 0 3px rgba(169, 84, 60, 0.25);
    outline: none;
}

.quantity-input {
    max-width: 60px;
    text-align: center;
    border: 1px solid #dce4e3;
    border-radius: 8px;
    margin: 0 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    height: 40px;
    background-color: #fff;
}

/* Calendar (Flatpickr) Styling */
#inline-calendar {
    border: none;
    box-shadow: none;
}

.flatpickr-calendar {
    /*width: 100% !important;*/
    background: transparent;
    border: none;
    box-shadow: none !important;
}

.flatpickr-month {
    color: #2c3e50;
    fill: #2c3e50;
}

.flatpickr-weekday {
    color: #7f8c8d;
    font-weight: 500;
}

.flatpickr-day {
    border-radius: 8px;
    color: #34495e;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.flatpickr-day:hover {
    background: #f6ebe8;
    color: #a9543c;
}

.flatpickr-day.today {
    border-color: #a9543c;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #a9543c;
    color: #fff;
    border-color: #a9543c;
}

.flatpickr-day.disabled {
    color: #bdc3c7;
    cursor: not-allowed;
}

    .flatpickr-day.selected.availability-high,
    .flatpickr-day.selected.availability-high:hover {
        background-color: lightgreen !important;
        border-color: green !important;
        color: black !important;
    }

    .flatpickr-day.selected.availability-low,
    .flatpickr-day.selected.availability-low:hover {
        background-color: yellow !important;
        border-color: orange !important;
        color: black !important;
    }

    .flatpickr-day.selected.availability-very-low,
    .flatpickr-day.selected.availability-very-low:hover {
        background-color: red !important;
        border-color: darkred !important;
        color: white !important;
    }

/* Transport Info */
#transportInfo {
    background-color: #f6ebe8; /* A light shade of the brand color */
    color: #8d4632; /* A darker shade for readability */
    border: 1px solid #e5d1cb;
}

/* Total Section */
#totalSection .card {
    background-color: #f4f7f6;
    border: none;
    border-radius: 12px;
}

#amount {
    color: #a9543c !important; /* Override Bootstrap's text-primary */
    font-weight: 700;
}

/* 1. Define the base structure for BOTH buttons */
.btn-primary,
.btn-outline-primary {
    border-radius: 8px !important;
    padding: 0.6rem 1.25rem !important; /* Unified padding */
    font-weight: 600 !important; /* Unified font-weight (semibold) */
    font-size: 0.875rem !important; /* Corresponds to Bootstrap's btn-sm */
    border: 1px solid #a9543c !important; /* Unified border */
    transition: all 0.2s ease !important;
    transform: translateY(0);
    box-shadow: none !important; /* Start with no shadow */
}

/* 2. Style the primary ("Pay Now") button's colors */
.btn-primary {
    background-color: #a9543c !important;
    color: #fff !important;
}

/* 3. Style the outline ("Pay Later") button's colors */
.btn-outline-primary {
    background-color: transparent !important;
    color: #a9543c !important;
}

    /* 4. Define UNIFIED hover, focus, and active states */
    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active,
    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(169, 84, 60, 0.25) !important;
        outline: none !important;
    }

/* 5. Define the specific HOVER color changes */
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #8d4632 !important; /* Darker shade */
    border-color: #8d4632 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #a9543c !important; /* Fill with color */
    color: #fff !important;
}

/* 6. Define UNIFIED disabled state */
.btn-primary:disabled,
.btn-outline-primary:disabled {
    transform: none;
    box-shadow: none !important;
    opacity: 0.65;
    cursor: not-allowed;
}

/* We keep the disabled colors separate in case you want them different */
.btn-primary:disabled {
    background-color: #a9543c !important;
    border-color: #a9543c !important;
}

.btn-outline-primary:disabled {
    background-color: transparent !important;
    border-color: #a9543c !important;
    color: #a9543c;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    /* Stack columns on tablets and smaller devices */
    .row.g-4 {
        flex-direction: column;
    }

    .col-lg-6 {
        width: 100%; /* Ensure columns take full width when stacked */
        margin-bottom: 1.5rem; /* Add space between stacked cards */
    }

    .col-lg-6:last-child {
        margin-bottom: 0;
    }

    .booking-card h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    #mainContent {
        margin: 1rem auto;
        padding: 1rem;
    }

    .booking-card {
        padding: 1.5rem !important;
    }
}

/* Intl-tel-input */
.iti {
    width: 100%;
}

.iti__country-list {
    z-index: 1100; /* High z-index for visibility */
}

.required-asterisk {
    color: #e74c3c;
    margin-left: 4px;
}