/* Simplified Timepicker Field Component Styles */

/* Basic timepicker wrapper */
.timepicker-wrapper {
    position: relative;
    width: 100%;
}

/* Timepicker input styling */
.timepicker-input {
    background: #f8f9fa;
    border: none;
    border-radius: 6px;
    padding: 14px 20px 14px 36px;
    color: #495057;
    width: 100%;
    box-shadow: none;
    min-height: 50px;
    outline: none;
    font-size: 16px;
    cursor: text;
}

.timepicker-input:focus {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

.timepicker-input:hover {
    background: #ffffff;
}

.timepicker-input::placeholder {
    color: #adb5bd;
}

/* Clock icon */
.timepicker-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6c757d;
}

.time-icon {
    width: 20px;
    height: 20px;
}

.timepicker-wrapper:hover .timepicker-icon,
.timepicker-input:focus + .timepicker-icon {
    color: #ffc107;
}

/* Clear button */
.timepicker-wrapper .transfer-field__clear {
    display: none;
}

.timepicker-wrapper.transfer-field__wrapper--has-value .transfer-field__clear {
    display: block;
}

/* Dropdown */
.timepicker-wrapper .transfer-field__dropdown {
    max-height: 200px;
    overflow-y: auto;
}

.timepicker-wrapper--open .timepicker-input {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}

/* Time Options */
.timepicker-options {
    padding: 5px 0;
}

.timepicker-option {
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    color: #333333;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.timepicker-option:hover {
    background-color: #fff8dc;
    color: #495057;
}

.timepicker-option--selected {
    background-color: #ffc107;
    color: #212529;
    font-weight: 600;
}

.timepicker-option--selected:hover {
    background-color: #ffca2c;
}

.timepicker-option--focused {
    background-color: #e3f2fd;
}

/* Error state */
.form-group--error .timepicker-input {
    background: #ffcccc;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.4);
    border-color: #e74c3c !important;
}

.form-group--error .timepicker-icon {
    color: #e74c3c;
    opacity: 0.8;
}

.form-group--error .timepicker-input::placeholder {
    color: #c0392b;
}

/* Return trip field positioning */
.return-trip-field .timepicker-wrapper {
    position: relative;
}

.return-trip-field .transfer-field__dropdown {
    position: absolute;
    max-height: 150px;
}

.return-trip-field--visible
    .timepicker-wrapper--open
    .transfer-field__dropdown {
    position: absolute;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .timepicker-input {
        padding: 14px 16px 14px 46px;
        font-size: 16px;
        min-height: 52px;
    }

    .timepicker-icon {
        left: 14px;
    }

    .time-icon {
        width: 18px;
        height: 18px;
    }

    .timepicker-wrapper .transfer-field__dropdown {
        margin-left: -2px;
        margin-right: -2px;
        border-left: none;
        border-right: none;
        max-height: 150px;
    }

    .timepicker-option {
        padding: 10px 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .timepicker-input {
        padding: 12px 14px 12px 42px;
        font-size: 16px;
        min-height: 48px;
    }

    .timepicker-icon {
        left: 12px;
    }

    .time-icon {
        width: 16px;
        height: 16px;
    }

    .timepicker-wrapper .transfer-field__dropdown {
        margin-left: -2px;
        margin-right: -2px;
        border-left: none;
        border-right: none;
        max-height: 150px;
    }

    .timepicker-option {
        padding: 10px 16px;
        font-size: 16px;
    }
}
