:root {
    --cr-bg: #2c1a4d;
    --cr-card-bg: #210A2D;
    --cr-input-bg: #3e2a63;
    --cr-gold: #BFA37C;
    --cr-text: #ffffff;
    --cr-gray-disabled: #666666;
}

.cr-container {
    background: var(--cr-bg);
    color: var(--cr-text);
    padding: 25px;
    border-radius: 12px;
    font-family: sans-serif;
}

.cr-header-row {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: start;
}
.cr-header-row h3 {
    color: #BFA37C;
}

/* Status Badge */
.cr-status {
    font-family: Inter;
    font-weight: 400;
    border-radius: 4px;
    font-size: 0.9em;
    display: none;
}
.cr-status .badge-circle {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}
.cr-status.available { 
    color: #fff; 
    display: flex;
    align-items: center;
    gap: 8px;
}
.cr-status.unavailable { color: #fff; display: inline-block; }
.flatpickr-current-month span.cur-month,
 .flatpickr-current-month input.cur-year{
    font-weight: 500;
    color: #fff;
    font-size: 16px;
}
.flatpickr-current-month {
    min-height: 60px;
}
.flatpickr-next-month,
.flatpickr-prev-month {
    top: 12px !important;
   
}
/* .flatpickr-day.inRange {
    box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #554141;
} */
 .dayContainer{
    background: #210A2D !important;
 }
 .flatpickr-day:hover {
    background: #BFA37C !important;
    color: #fff !important;
 }
 .flatpickr-day.inRange {
    background: #542877 !important;
    color: #fff !important;
    box-shadow: -5px 0 0 #542877, 5px 0 0 #542877;
    border: 1px solid #542877 !important;
 }
/* CALENDAR STYLES */
.flatpickr-calendar {
    background: var(--cr-input-bg) !important;
    border: none !important;
    box-shadow: none !important;
    margin: 20px auto 0 auto !important;
}
.flatpickr-day {
    color: #fff !important;
    border-radius: 0 !important;
    border: 1px solid transparent;
}
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange {
    background: var(--cr-gold) !important;
    border-color: var(--cr-gold) !important;
    color: #000 !important;
}
.flatpickr-day.flatpickr-disabled {
    background: var(--cr-gray-disabled) !important;
    color: #aaa !important;
    opacity: 0.5;
    text-decoration: line-through;
}
.flatpickr-months .flatpickr-month {
    background: var(--cr-gold) !important;
    color: #000 !important;
    fill: #000 !important;
    border-radius: 10px 10px 0 0;
    min-height: 60px;
}
span.flatpickr-weekday {
    color: #fff !important;
    font-weight: 500;
}

/* BLACK PILL (Date Text) */
.cr-date-display-pill {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 16px;
    margin: 30px 0;
    position: relative;
    z-index: 2;
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
}

/* FORM ELEMENTS */
.cr-label { display: block; font-size: 0.9em; color: #bbb; margin-bottom: 10px; color: #fff; font-family: Inter; }
.cr-label-field{
    color: var(--Gold, #BFA37C);
    font-family: "Clash Display";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 25.2px */
    margin-bottom: 10px;
}

.cr-select {
    width: 100%;
    padding: 12px;
    background: var(--cr-input-bg);
    border: 1px solid #BFA37C;
    color: #BFA37C;
    border-radius: 8px;
    margin-bottom: 15px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
}

/* GRID LAYOUT */
.cr-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}
.cr-info-card {
    background: var(--cr-card-bg);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #3e2a63;
    position: relative; /* For click handler */
}

/* .cr-info-card .cr-val {
    font-size: 1.1em;
    color: #fff;
    font-weight: 500;
    margin-top: 2px;
} */
 .kba-car-booking-title{
    font-family: "Clash Display";
    font-weight: 400;
    line-height: 140%; 
 }
/* CLEAN INPUTS (Time & Select) */
.cr-clean-input,
 .cr-val {
    background:  #210A2D !important;
    font-family: Inter;
    font-size: 14px;
    font-weight: 400;
    border: none;
    color: #fff;
    width: 100%;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}
.cr-clean-input:focus { outline: none; }
/* Force white calendar icon in some browsers */
.cr-clean-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}
.kba-section-divider {
    height: 1px;
    width: 100%;
    background: #BFA37C;
    margin: 30px 0;
}
/* SUMMARY & BUTTONS */
.cr-summary-box { background: var(--cr-card-bg); padding: 40px; border-radius: 8px; margin-top: 20px; }
.cr-row { display: flex; justify-content: space-between; margin-bottom: 8px; }
.cr-total { border-top: 1px solid #BFA37C; padding-top: 10px; margin-top: 10px; font-size: 1.2em; color: var(--cr-gold); font-weight: bold; }
.cr-btn { width: 100%; background: var(--cr-gold) !important; color: #fff !important; padding: 16px 32px !important; border: none !important; font-weight: bold; cursor: pointer; border-radius: 6px; margin-top: 20px; transition: 0.3s; display: block !important; margin: auto; border-radius: 8000px !important; -webkit-border-radius: 8000px !important; -moz-border-radius: 8000px !important; -ms-border-radius: 8000px !important; -o-border-radius: 8000px !important; font-size: 14px !important; }
.cr-btn:hover { background: #3E195A !important; }
.cr-btn:disabled { background: #4c4055 !important; cursor: not-allowed; color: #888 !important; }

@media (max-width: 767px) {
    .cr-grid-2x2 {
        grid-template-columns: 1fr;
    }
    .cr-summary-box {
        padding: 15px;
    }
    .cr-label-field {
        font-size: 16px;
    }
}