/* =========================================
   MLB Booking Modal — Luxury UI (Scoped)
   ========================================= */

.mlb-booking {
    --mlb-bg: #ffffff;
    --mlb-ink: #313131;
    --mlb-muted: rgba(15, 17, 21, 0.62);
    --mlb-soft: rgba(15, 17, 21, 0.08);
    --mlb-line: #313131;
    --mlb-shadow: 0 30px 90px rgba(0,0,0,.30);
    --mlb-radius: 18px;
    --mlb-radius-sm: 12px;
    --mlb-accent: rgba(49, 49, 49, 0.59);
    --mlb-accent-soft: rgba(49, 49, 49, 0.11);
    --mlb-danger: #c62828;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--mlb-ink);
}

.mlb-booking .mlb-left{
    position: relative;
    background: #f7f8fa;
}

.mlb-booking .mlb-left{
    background-image: var(--mlb-left-bg);
    background-size: cover;
    background-position: center;
}

.mlb-booking .mlb-left::after{
    content:"";
    position:absolute;
    inset:0;
    background: #ffffff;
    opacity: .15; /* overridden by Elementor control */
    pointer-events:none;
}

.mlb-booking .mlb-left > *{
    position: relative;
    z-index: 1;
}


/* Button */
.mlb-booking .mlb-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid var(--mlb-line);
    background: var(--mlb-ink);
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.mlb-booking .mlb-open:hover {
    transform: translateY(-1px);
    background-color: #FFFFFF;
    Color: #313131;
    transition: all 0.3s;
}
.mlb-booking .mlb-open:active { transform: translateY(0px) scale(.99); }
.mlb-booking .mlb-open:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--mlb-accent-soft), 0 10px 28px rgba(0,0,0,.18);
}

/* Modal visibility rules */
.mlb-booking .mlb-modal {
    display: none !important;
}

.mlb-booking .mlb-modal.mlb-opened {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

/* Backdrop */
.mlb-booking .mlb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
}

/* Dialog */
.mlb-booking .mlb-dialog {
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1140px, 92vw);
    height: min(620px, 86vh);
    background: var(--mlb-bg);
    border-radius: var(--mlb-radius);
    overflow: hidden;
    box-shadow: var(--mlb-shadow);
    border: 1px solid #313131;
}

/* Close button */
.mlb-booking .mlb-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20; /* above scroll content */
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--mlb-line);
    background: rgba(255,255,255,.9);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: transform .12s ease, box-shadow .12s ease;
}
.mlb-booking .mlb-close:hover { transform: translateY(-1px); }
.mlb-booking .mlb-close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--mlb-accent-soft);
}

/* Layout grid */
.mlb-booking .mlb-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    height: 100%;
}

/* Left panel */
.mlb-booking .mlb-left {
    padding: 28px 26px;
    border-right: 1px solid var(--mlb-line);
    background:
            radial-gradient(800px 400px at 20% 15%, rgba(26,115,232,.08), transparent 60%),
            radial-gradient(600px 380px at 15% 80%, rgba(0,0,0,.05), transparent 55%),
            #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mlb-booking .mlb-brand {
    font-weight: 800;
    letter-spacing: .22em;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--mlb-muted);
}

.mlb-booking .mlb-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 2px;
}

.mlb-booking .mlb-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--mlb-muted);
}

.mlb-booking .mlb-desc {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(15,17,21,.78);
    max-width: 32ch;
}

.mlb-booking .mlb-note {
    margin-top: auto;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--mlb-line);
    background: rgba(0,0,0,.03);
    font-size: 12px;
    color: rgba(15,17,21,.75);
}
.mlb-booking .mlb-note strong { color: var(--mlb-ink); }

/* Right panel */
/* Right panel layout fix */
.mlb-booking .mlb-right{
    padding: 22px 22px 18px 22px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0; /* IMPORTANT for overflow */
}

.mlb-booking .mlb-head {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    padding: 4px 0 14px 0;
}

/* Body split (calendar + slots) */
.mlb-booking .mlb-body {
    flex: 1;
    display: grid;
    grid-template-columns: 52% 48%;
    gap: 18px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    padding-bottom: 24px;
}

.mlb-booking .mlb-body::-webkit-scrollbar{
    width: 6px;
}
.mlb-booking .mlb-body::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,.18);
    border-radius: 6px;
}
.mlb-booking .mlb-body::-webkit-scrollbar-track{
    background: transparent;
}


.mlb-booking .mlb-calendar-col {
    padding-right: 14px;
    border-right: 1px solid var(--mlb-line);
    overflow: auto;
}

.mlb-booking .mlb-slots-col {
    overflow: auto;
    padding-right: 2px;
}

/* Inputs */
.mlb-booking .mlb-date,
.mlb-booking .mlb-tz,
.mlb-booking .mlb-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--mlb-line);
    background: #fff;
    padding: 12px 12px;
    font-size: 14px;
    color: var(--mlb-ink);
    transition: box-shadow .12s ease, border-color .12s ease;
}

.mlb-booking .mlb-date::placeholder,
.mlb-booking .mlb-input::placeholder {
    color: rgba(15,17,21,.45);
}

.mlb-booking .mlb-date:focus,
.mlb-booking .mlb-tz:focus,
.mlb-booking .mlb-input:focus {
    outline: none;
    border-color: rgba(26,115,232,.5);
    box-shadow: 0 0 0 4px var(--mlb-accent-soft);
}

.mlb-booking .mlb-tz-row {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.mlb-booking .mlb-tz-label {
    font-size: 12px;
    color: var(--mlb-muted);
    font-weight: 700;
}

/* Slots header */
.mlb-booking .mlb-slots-top {
    padding: 2px 0 12px 0;
    border-bottom: 1px solid var(--mlb-line);
    margin-bottom: 14px;
}
.mlb-booking .mlb-selected-date {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.01em;
}
.mlb-booking .mlb-selected-time {
    margin-top: 4px;
    font-size: 12px;
    color: var(--mlb-muted);
}

/* State box */
.mlb-booking .mlb-state {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--mlb-line);
    background: rgba(0,0,0,.03);
    font-size: 13px;
    color: rgba(15,17,21,.75);
    margin-bottom: 12px;
}

/* Slot buttons */
.mlb-booking .mlb-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mlb-booking .mlb-slot {
    width: 100%;
    padding: 14px 12px;
    border-radius: 14px;
    border: 1px solid #313131;
    background-color: #FFFFFF;
    Color: #313131;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.mlb-booking .mlb-slot:hover {
    transform: translateY(-1px);
    background-color: #313131;
    Color: #ffffff;
    transition: all 0.3s;
}
.mlb-booking .mlb-slot.is-active {
    border-color: #313131;
}

/* Form */
.mlb-booking .mlb-form {
    margin-top: 16px;
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--mlb-line);
}

.mlb-booking .mlb-form-title {
    font-weight: 900;
    font-size: 13px;
    color: var(--mlb-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mlb-booking .mlb-confirm {
    margin-top: 6px;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid #313131;
    background: #313131;
    color: #fff;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.mlb-booking .mlb-confirm:hover {
    transform: translateY(-1px);
    background-color: #FFFFFF;
    Color: #313131;
    transition: all 0.3s;

}
.mlb-booking .mlb-confirm:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mlb-booking .mlb-form-hint {
    font-size: 12px;
    color: var(--mlb-muted);
}

/* Helpers */
.mlb-hidden { display: none !important; }
.mlb-lock { overflow: hidden; }

/* Editor hint */
.mlb-booking .mlb-editor-hint {
    margin-top: 10px;
    font-size: 12px;
    color: var(--mlb-muted);
    border: 1px dashed var(--mlb-line);
    border-radius: 12px;
    padding: 10px 12px;
}
.mlb-booking .mlb-form-hint{
    margin-bottom: 24px;
}

.mlb-booking .mlb-dialog,
.mlb-booking .mlb-right,
.mlb-booking .mlb-body,
.mlb-booking .mlb-calendar-col,
.mlb-booking .mlb-slots-col{
    overflow-x: hidden !important;
}
.mlb-booking .mlb-body{
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    gap: 18px;

    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;

    padding-right: 0;         /* remove extra width */
}

.mlb-booking .mlb-calendar-col,
.mlb-booking .mlb-slots-col{
    min-width: 0; /* allows content to shrink instead of overflowing */
}

/* Flatpickr must sit ABOVE modal content */
.flatpickr-calendar{
    z-index: 10000000 !important;
}

/* =========================
   Success message styling
   ========================= */

.mlb-booking .mlb-success{
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(
            180deg,
            rgba(0,0,0,.03),
            rgba(0,0,0,.02)
    );
    border: 1px solid rgba(0,0,0,.08);
}

.mlb-booking .mlb-success-icon{
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1fa971;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.mlb-booking .mlb-success-title{
    font-size: 18px;
    font-weight: 750;
    margin-bottom: 4px;
}

.mlb-booking .mlb-success-sub{
    font-size: 14px;
    color: rgba(0,0,0,.65);
    margin-bottom: 14px;
}

.mlb-booking .mlb-success-info{
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.mlb-booking .mlb-success-info strong{
    font-weight: 650;
}

.mlb-booking .mlb-success-hint{
    font-size: 13px;
    color: rgba(0,0,0,.55);
}

/* Responsive */
@media (max-width: 900px) {
    .mlb-booking .mlb-dialog {
        width: 94vw;
        height: 90vh;
    }
    .mlb-booking .mlb-grid {
        grid-template-columns: 1fr;
    }
    .mlb-booking .mlb-left {
        border-right: none;
        border-bottom: 1px solid var(--mlb-line);
        padding: 18px 18px;
    }
    .mlb-booking .mlb-body {
        grid-template-columns: 1fr;
    }
    .mlb-booking .mlb-calendar-col {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--mlb-line);
        padding-bottom: 14px;
        margin-bottom: 14px;
    }
    .mlb-booking .mlb-slots {
        grid-template-columns: 1fr;
    }
}

.mlb-booking .mlb-date {
    cursor: pointer;
    position: relative;
    z-index: 2;
}
.mlb-booking .flatpickr-calendar {
    z-index: 9999999 !important;
}

.mlb-booking .mlb-modal { display: none !important; }
.mlb-booking .mlb-modal.mlb-opened { display: block !important; }

.mlb-booking .mlb-fp-anchor{
    position: relative;
}

.mlb-booking .mlb-fp-anchor .flatpickr-calendar{
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin-top: 10px;
    z-index: 9999999 !important;
}

/* =========================
   Form section (right column)
   ========================= */

.mlb-booking .mlb-form{
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.mlb-booking .mlb-form-title{
    font-weight: 750;
    letter-spacing: .14em;
    font-size: 12px;
    color: rgba(0,0,0,.55);
    margin: 12px 0 12px 0;
}

/* Inputs */
.mlb-booking .mlb-input{
    width: 100%;
    appearance: none;
    -webkit-appearance: none;

    border: 1px solid rgba(0,0,0,.10);
    background: #fff;
    border-radius: 16px;

    padding: 12px 14px;
    height: 46px;

    font-size: 14px;
    font-weight: 550;
    color: rgba(0,0,0,.82);

    outline: none;
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
    margin: 0 0 10px 0;
}

/* Placeholder */
.mlb-booking .mlb-input::placeholder{
    color: rgba(0,0,0,.35);
    font-weight: 500;
}

/* Focus state (premium ring) */
.mlb-booking .mlb-input:focus{
    border-color: #313131;
}

/* Subtle hover */
.mlb-booking .mlb-input:hover{
    border-color: rgba(0,0,0,.16);
}

/* Textarea */
.mlb-booking textarea.mlb-input{
    height: auto;
    min-height: 110px;
    padding: 12px 14px;
    resize: none;
    line-height: 1.55;
}

/* If you hide phone via mlb-hidden, keep spacing clean */
.mlb-booking .mlb-input.mlb-hidden{
    display: none !important;
}

/* Form hint */
.mlb-booking .mlb-form-hint{
    margin-top: 10px;
    font-size: 12px;
    color: rgba(0,0,0,.52);
}