/* Simplified Datepicker Field Component Styles */

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

/* Datepicker input styling */
.datepicker-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: pointer;
}

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

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

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

/* Calendar icon */
.datepicker-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

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

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

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

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

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

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

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

.return-trip-field.return-trip-field--visible .datepicker-wrapper {
    position: relative;
}

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

    .datepicker-icon {
        left: 14px;
    }

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

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

    .datepicker-icon {
        left: 12px;
    }

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