/* Custom Time Picker Styles */

.custom-time-picker-wrapper {
    position: relative;
    font-family: 'Inter', sans-serif;
    margin-top: 10px;
    width: 100%;
}

/* Hide original input but keep it for form submission if needed, or we sync a hidden one */
input[name="pickup_time"] {
    display: none !important;
}

/* The Label */
.custom-time-label {
    display: block;
    color: #ffffff;
    /* White text */
    font-size: 14px;
    /* Matches Typical Labels */
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.custom-time-label .required-star {
    color: red;
    margin-left: 3px;
}

/* The Trigger Box */
.custom-time-input-trigger {
    width: 100%;
    border-bottom: 2px solid #ffffff;
    /* White line */
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 0;
    font-size: 16px;
    min-height: 40px;
    /* clickable area */
    display: flex;
    align-items: center;
    position: relative;
}

/* Placeholder or Selected Value */
.custom-time-display-value {
    color: #ffffff;
    font-size: 16px;
    opacity: 0.8;
}

.custom-time-display-value.has-value {
    opacity: 1;
    font-weight: 600;
}

/* The Arrow/Indicator on the line (Optional, based on 'white triangle' in similar designs) */
.custom-time-input-trigger::after {
    content: '';
    position: absolute;
    bottom: -1px;
    /* On the line */
    left: 20px;
    /* Position */
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ffffff;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.2s;
}

.custom-time-input-trigger.active::after {
    opacity: 1;
    /* Show when active */
}


/* The Popover */
.custom-time-popover {
    display: none;
    position: absolute;
    top: 50px;
    /* Below the line */
    left: 0;
    width: 320px;
    /* Set width */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    padding: 20px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.custom-time-popover.open {
    display: flex;
}

/* Columns */
.time-picker-column {
    height: 150px;
    overflow-y: scroll;
    width: 80px;
    text-align: center;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    position: relative;
    scroll-behavior: smooth;
}

.time-picker-column::-webkit-scrollbar {
    display: none;
}

/* Items */
.time-picker-item {
    padding: 10px 0;
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.time-picker-item:hover {
    color: #666;
}

.time-picker-item.selected {
    color: #000;
    font-size: 24px;
    font-weight: bold;
    transform: scale(1.1);
}

/* Spacers for scroll centering */
.scroll-spacer {
    height: 60px;
    /* Half height approx */
}

/* Separator : */
.time-separator {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-top: -10px;
    /* Adjust alignment */
}

/* AM/PM Column */
.ampm-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.ampm-item {
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
    color: #ccc;
    font-weight: 500;
}

.ampm-item.selected {
    color: #000;
    font-weight: bold;
}