/* booking.css */
/* booking.css */
/* Fonts and Colors are inherited from website.css */

/* Sticky Footer & Scrollbar Fix */
html {
    overflow-y: scroll !important;
    /* Prevent layout shift when scrollbar toggles */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer,
.footer {
    margin-top: auto;
}

h1 {
    color: rgb(106, 124, 128) !important;
    font-weight: 400;
}

h2,
h3,
h4,
h5,
h6 {
    /* Font-family and Text-Transform inherited from website.css */
    color: var(--color-text-dark);
    font-weight: 400;
}

/* Global Button Styles */
* {
    border-radius: 0 !important;
}

button,
.btn-book,
.btn-back,
input[type="submit"] {
    background-color: var(--color-primary);
    border: none;
    border-radius: 0 !important;
    padding: 12px 20px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

/* Inputs */
input,
select,
textarea {
    border: 1px solid #ddd;
    border-radius: 0 !important;
    padding: 10px;
    font-family: var(--font-body);
    color: var(--color-text-dark);
    accent-color: var(--color-primary);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Progress Bar Overrides */
.progress-container .step-circle {
    border-radius: 50% !important;
    background-color: white;
}

.progress-container .step-item.active .step-circle {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.progress-container .step-item.active .step-label {
    color: var(--color-primary) !important;
    font-family: var(--font-heading);
}

.progress-container .step-item.completed .step-circle {
    color: var(--color-primary) !important;
}

/* Product Card Step 1 - New Clean Design */
.alert-cyan-box {
    background-color: var(--color-primary);
    /* Cyan */
    color: #fff;
    padding: 8px 20px;
    font-weight: 600;
    display: inline-block;
    margin-top: 1.5rem;
    margin-bottom: 15px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    /* Slightly wider for better card look */
    gap: 30px;
}

.category-title {
    font-family: var(--font-heading);
    color: var(--color-text-dark);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.card {
    background: white;
    border: none;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important;
    /* bootstrap shadow-sm */
    display: flex;
    flex-direction: column;
}

.card-body {
    padding: 2rem 1rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

@media (min-width: 992px) {
    .card-body {
        padding: 2rem !important;
    }
}

.h5.text-muted {
    color: #6c757d !important;
    text-transform: uppercase;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 500;
    line-height: 1.2;
}

.price {
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.currency-symbol {
    font-size: 0.6em;
    vertical-align: super;
    margin-right: 2px;
}

.text-muted.small {
    color: #6c757d !important;
    font-size: 0.875rem;
}

.mt-auto {
    margin-top: auto !important;
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.btn-outline-secondary {
    color: #6c757d;
    border: 1px solid #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Primary btn override for this specific look */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-secondary);
}


/* Calendar Step 2 */
.calendar-header {
    background-color: transparent !important;
    color: var(--color-text-dark) !important;
    border-bottom: 1px solid #eee;
}

/* Standardized B2B Card Styles */

.b2b-card-title {
    margin-bottom: 2rem !important;
    text-align: center;
    font-weight: 400;
}

.calendar-wrapper {
    width: 100%;
}

@media (min-width: 768px) {
    .calendar-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

.day-cell,
.calendar-nav-btn {
    border-radius: 50% !important;
}

.day-cell.available {
    background-color: #f0f9fb;
    color: var(--color-text-dark);
}

.day-cell.available:hover,
.day-cell.selected {
    background-color: var(--color-primary) !important;
    color: white !important;
}

/* Time Slots Step 3 */
.time-slot {
    border: 1px solid var(--color-primary) !important;
    color: var(--color-primary) !important;
    border-radius: 0 !important;
}

.time-slot:hover {
    background-color: var(--color-primary) !important;
    color: white !important;
}

/* Summary Step 5 */
.summary-block {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 0 !important;
}

.summary-row {
    border-bottom-color: #eee;
}

/* Custom Alert Step 1 */
.alert-cyan {
    background-color: rgba(10, 149, 179, 0.15);
    border: 1px solid var(--color-primary);
    color: var(--color-text-dark);
}

.alert-cyan strong {
    color: var(--color-primary);
}

/* Checkbox Override for Bootstrap */
.form-check-input:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Off-screen class for Honeypot */
.accessibility-required {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.h2 {
    font-weight: 400;
}

.progress-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.step-item {
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center content */
    flex: 1 1 0px;
    /* Force equal width */
    min-width: 0;
    padding: 0;
}

@media screen and (min-width: 768px) {
    .step-item {
        padding: 0 4px;
        /* Reduced for MD */
    }
}

@media screen and (min-width: 992px) {
    .step-item {
        padding: 0 8px;
        /* Original for LG+ */
    }
}

/* Line between items */
.step-item:not(:last-child)::after {
    content: '';
    display: block;
    width: 15px;
    height: 1px;
    background: #eee;
    position: absolute;
    /* Take out of flow */
    right: -8px;
    /* Position at junction */
    top: 13px;
    /* Center vertically relative to 26px circle */
    z-index: 1;
}

/* Responsive adjustments for spacing */
@media screen and (min-width: 768px) {
    .progress-container {
        max-width: 700px;
        /* Wider on MD */
    }

    .step-item:not(:last-child)::after {
        width: 30px;
        /* Longer lines */
        right: -15px;
        /* Centered at junction */
    }
}

@media screen and (min-width: 992px) {
    .progress-container {
        max-width: 800px;
        /* Even wider on LG */
    }

    .step-item:not(:last-child)::after {
        width: 50px;
        /* Longest lines */
        right: -25px;
        /* Centered at junction */
    }
}

.step-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    position: relative;
}

.step-link.clickable {
    cursor: pointer;
}

.step-circle {
    font-size: 1.0em;
    color: #ccc;
    font-weight: normal;
    margin-bottom: 2px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.step-label {
    font-size: 0.65em;
    /* Smaller on mobile */
    color: #bbb;
    /* Light gray */
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    /* Always show */
    margin-top: 5px;
    line-height: 1.2;
}

/* Remove the specific rule for active step since all are shown now */

@media screen and (min-width: 768px) {
    .step-label {
        font-size: 0.85em;
        /* Larger on desktop */
    }
}

/* Completed */
.step-item.completed .step-circle {
    color: #aaa;
    font-weight: bold;
}

.step-item.completed .step-label {
    color: #aaa;
}

.step-item.completed .step-link.clickable:hover .step-circle {
    color: #007bff;
    background: #f0f7ff;
}

/* Active */
.step-item.active .step-circle {
    color: #007bff;
    font-weight: bold;
    background: transparent;
    border: 1px solid #007bff;
    /* Minimal border for active only */
}

.step-item.active .step-label {
    color: #007bff;
    font-weight: 600;
}

/* Mobile Optimizations < 400px */
/* Mobile Optimizations < 576px */
@media screen and (max-width: 576px) {
    .progress-container {
        margin-bottom: 25px;
        flex-wrap: nowrap;
        overflow-x: auto;
        /* Allow horizontal scroll if needed for extreme cases */
        justify-content: space-between;
        /* Distribute evenly */
        padding-bottom: 5px;
        /* Space for scrollbar if visible */
    }

    .step-item {
        padding: 0 2px;
        flex: 1 1 0px;
        /* Enforce equal width for all items regardless of content */
        min-width: 0;
        /* Allow shrinking below content size if needed */

    }

    .step-circle {
        width: 20px;
        height: 20px;
        font-size: 0.8em;
    }

    .step-label {
        font-size: 0.55em;
        /* Extremely small for 8 steps */
        margin-top: 4px;
        letter-spacing: 0;
        white-space: nowrap;
        /* Prevent wrap */
        overflow: hidden;
        text-overflow: ellipsis;
        /* Dot dot if too long */
        max-width: 40px;
        /* Constrain width */
    }

    /* Reduce spacing connection line */
    .step-item:not(:last-child)::after {
        width: auto;
        flex-grow: 1;
        margin-left: 2px;
        margin-right: 2px;
        height: 1px;
        min-width: 5px;
        /* Minimum connector */
    }
}

/* Extra Small Mobile Optimizations < 400px */
@media screen and (max-width: 400px) {
    .step-label {
        max-width: 32px;
        /* Ultra constrained */
        font-size: 0.5em;
        /* Tiny font */
    }

    .step-item {
        padding: 0 1px;
    }

    .step-item:not(:last-child)::after {
        min-width: 2px;
        /* Barely visible connector */
        margin-left: 1px;
        margin-right: 1px;
    }

    .progress-container {
        padding-left: 0;
        padding-right: 0;
    }
}


/* --- Converted from booking_step2.php inline styles --- */

/* Calendar Specific Premium Styles */
.calendar-card {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    /* Soft, deep shadow */
    border-radius: 4px;
    /* Slight radius or 0 depending on corp design */
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 30px;
    width: 100%;
    /* Ensure full width */
}

.calendar-nav-btn {
    background: none;
    border: 1px solid #eee;
    color: var(--color-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.calendar-nav-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.calendar-nav-btn.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
    border-color: #f5f5f5;
}

.calendar-month-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
    margin: 0;
    text-align: center;
    flex-grow: 1;
    /* Take up space between buttons */
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    /* Space between cells */
    width: 100%;
    /* FORCE FULL WIDTH */
}

.weekday-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    /* Darkened from #aaa */
    text-transform: uppercase;
    padding-bottom: 10px;
    letter-spacing: 1px;
}

/* The Day Cell Aspect Ratio Hack/Modern CSS */
.day-wrapper {
    aspect-ratio: 1 / 1;
    position: relative;
    width: 100%;
    /* Fill the grid cell */
}

.day-cell {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50%;
    /* Circles are standard for premium date pickers */
    color: #bbb;
    /* Darkened from #ccc for better visibility of numbers */
    background-color: transparent;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    text-decoration: none !important;
    user-select: none;
}

.day-cell.available {
    color: var(--color-text-dark);
    cursor: pointer;
    background-color: #f5f5f5;
    /* Very subtle grey background for interactive areas */
}

.day-cell.available:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(10, 149, 179, 0.3);
    /* Glow effect */
}

.day-cell.today {
    /* Highlight today subtly if logical */
    font-weight: 700;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    /* Ensure today is readable */
}

.day-cell.empty {
    pointer-events: none;
}

/* Mobile tweaks */
@media (max-width: 500px) {
    .calendar-grid {
        gap: 5px;
    }

    .day-cell {
        font-size: 0.9rem;
    }
}

.b2b-card-title {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: rgb(106, 124, 128);
}