/**
 * UTS Luxury Booking Request Form - Theme Harmonized Luxury Styling
 * Matches Chauffeur / Executive Limousine Warm Beige & Gold Accent Theme
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --uts-theme-bg: #FAF7F2;
    --uts-card-bg: #FFFFFF;
    --uts-text-primary: #1A1715;
    --uts-text-secondary: #5A524A;
    --uts-text-placeholder: #9E9488;
    --uts-accent-gold: #C88A35;
    --uts-accent-gold-hover: #B87A28;
    --uts-border-subtle: #EAE2D7;
    --uts-border-focus: #C88A35;
    --uts-btn-bg: #181512;
    --uts-btn-hover: #26211C;
    --uts-font-sans: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.uts-booking-card-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    font-family: var(--uts-font-sans) !important;
    box-sizing: border-box !important;
}

.uts-booking-card-wrapper *,
.uts-booking-card-wrapper *::before,
.uts-booking-card-wrapper *::after {
    box-sizing: border-box !important;
}

/* Main Form Card - Warm Luxury Aesthetic */
.uts-booking-card {
    background: #ffffff !important;
    border-radius: 28px !important;
    padding: 42px 52px !important;
    box-shadow: 0 20px 50px -10px rgba(35, 25, 15, 0.08), 0 6px 20px -4px rgba(35, 25, 15, 0.03) !important;
    border: 1px solid #EFE8DD !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.uts-booking-card:hover {
    border-color: #E2D7C8 !important;
    box-shadow: 0 24px 60px -12px rgba(35, 25, 15, 0.11), 0 8px 24px -4px rgba(35, 25, 15, 0.05) !important;
}

.uts-booking-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 26px !important;
    width: 100% !important;
}

/* Row Form Field */
.uts-form-field {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

/* Form Labels - Elegant Dark Charcoal with crisp typography */
.uts-label {
    font-size: 15px;
    font-weight: 600;
    color: #1A1715;
    margin-bottom: 7px;
    line-height: 1.3;
    letter-spacing: -0.15px;
}

/* Universal Input Styles */
body .uts-booking-card-wrapper input[type="text"],
body .uts-booking-card-wrapper input[type="tel"],
body .uts-booking-card-wrapper input[type="date"],
body .uts-booking-card-wrapper input[type="time"],
body .uts-booking-card-wrapper input[type="number"],
body .uts-booking-card-wrapper .uts-input,
.uts-booking-card-wrapper .uts-input,
.uts-booking-card .uts-input,
.uts-input {
    width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-bottom: 1.5px solid #EAE2D7 !important;
    padding: 8px 0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #1A1715 !important;
    font-family: inherit !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: all 0.25s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    line-height: normal !important;
}

body .uts-booking-card-wrapper input[type="number"]::-webkit-inner-spin-button,
body .uts-booking-card-wrapper input[type="number"]::-webkit-outer-spin-button,
.uts-input[type="number"]::-webkit-inner-spin-button,
.uts-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

body .uts-booking-card-wrapper input[type="number"],
.uts-input[type="number"] {
    -moz-appearance: textfield !important;
}

.uts-input::placeholder {
    color: #9E9488 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

body .uts-booking-card-wrapper input:focus,
body .uts-booking-card-wrapper .uts-input:focus,
.uts-input:focus {
    border-bottom-color: #C88A35 !important;
    outline: none !important;
    box-shadow: 0 1px 0 0 #C88A35 !important;
}

/* Universal Select Reset */
body .uts-booking-card-wrapper select,
body .uts-booking-card-wrapper select.uts-select,
body .uts-booking-card-wrapper .uts-select,
.uts-booking-card-wrapper select,
.uts-booking-card-wrapper select.uts-select,
.uts-booking-card-wrapper .uts-select,
.uts-booking-card select,
.uts-booking-card select.uts-select,
.uts-booking-card .uts-select,
.uts-form-field select,
.uts-form-field .uts-select,
.uts-select-wrapper select,
select.uts-select,
.uts-select {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1.5px solid #EAE2D7 !important;
    border-radius: 0 !important;
    padding: 8px 28px 8px 0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #1A1715 !important;
    font-family: inherit !important;
    outline: none !important;
    cursor: pointer !important;
    margin: 0 !important;
    line-height: normal !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    transition: all 0.25s ease !important;
}

body .uts-booking-card-wrapper select:focus,
body .uts-booking-card-wrapper select.uts-select:focus,
body .uts-booking-card-wrapper .uts-select:focus,
.uts-booking-card .uts-select:focus,
select.uts-select:focus,
.uts-select:focus {
    border-bottom-color: #C88A35 !important;
    outline: none !important;
    box-shadow: 0 1px 0 0 #C88A35 !important;
}

/* Hide Microsoft Edge / IE Default Expand Arrow */
body .uts-booking-card-wrapper select::-ms-expand,
.uts-booking-card-wrapper select::-ms-expand,
.uts-booking-card select::-ms-expand,
select.uts-select::-ms-expand,
.uts-select::-ms-expand {
    display: none !important;
}

/* Prevent Theme Pseudo-elements */
body .uts-booking-card-wrapper .uts-select-wrapper::before,
body .uts-booking-card-wrapper .uts-select-wrapper::after,
body .uts-booking-card-wrapper .uts-select::before,
body .uts-booking-card-wrapper .uts-select::after,
.uts-select-wrapper::before,
.uts-select-wrapper::after,
.uts-select::before,
.uts-select::after {
    display: none !important;
    content: none !important;
}

/* Split Rows */
.uts-form-row-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    width: 100% !important;
}

.uts-form-row-split .uts-form-field {
    width: 100% !important;
    min-width: 0 !important;
}

.uts-split-divider {
    display: none !important;
    width: 1px;
    height: 48px;
    background-color: #EAE2D7;
    margin: 0 4px;
    flex-shrink: 0;
}

/* Desktop & Tablet Split View (768px and up) */
@media (min-width: 768px) {
    .uts-form-row-split {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 32px !important;
    }

    .uts-split-divider {
        display: block !important;
    }
}

/* Select Vehicle Dropdown */
.uts-select-wrapper {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}

.uts-select:invalid,
.uts-select option[disabled] {
    color: #9E9488 !important;
}

.uts-select option {
    color: #1A1715 !important;
    background: #ffffff !important;
    padding: 12px !important;
}

.uts-select-caret {
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    transform: translateY(-70%) rotate(45deg) !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 2px solid #7A6F64 !important;
    border-bottom: 2px solid #7A6F64 !important;
    border-top: none !important;
    border-left: none !important;
    background: transparent !important;
    background-image: none !important;
    pointer-events: none !important;
    z-index: 2 !important;
    display: block !important;
    transition: border-color 0.2s ease, transform 0.2s ease !important;
}

.uts-select-wrapper:hover .uts-select-caret,
.uts-select:focus + .uts-select-caret {
    border-right-color: #C88A35 !important;
    border-bottom-color: #C88A35 !important;
}

/* Input with Icon (Date & Time) */
.uts-input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.uts-input-icon {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #1A1715;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: color 0.2s ease;
}

.uts-input:focus ~ .uts-input-icon,
.uts-input-icon-wrapper:hover .uts-input-icon {
    color: #C88A35;
}

/* WebKit / Blink Date & Time Picker Indicators */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button,
input[type="time"]::-webkit-clear-button,
.uts-input::-webkit-calendar-picker-indicator,
.uts-input::-webkit-inner-spin-button,
.uts-input::-webkit-clear-button,
.uts-datepicker-input::-webkit-calendar-picker-indicator,
.uts-timepicker-input::-webkit-calendar-picker-indicator {
    display: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    outline: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.uts-input,
.uts-input[type="date"],
.uts-input[type="time"],
.uts-datepicker-input,
.uts-timepicker-input {
    background-image: none !important;
}

/* Submit Action Button - Matches Website Orange "Book Now" Button */
.uts-form-actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
}

.uts-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #F09426;
    background: linear-gradient(180deg, #F59C24 0%, #EA8E26 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    padding: 13px 38px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(234, 142, 38, 0.35);
    outline: none;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.uts-submit-btn:hover {
    background: linear-gradient(180deg, #EA8E26 0%, #D87F18 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(234, 142, 38, 0.45);
}

.uts-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(234, 142, 38, 0.3);
}

.uts-btn-text {
    margin-right: 0;
    letter-spacing: -0.1px;
}

.uts-btn-arrow-circle {
    display: none;
}

/* Button Loading State */
.uts-submit-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.uts-submit-btn.is-loading .uts-btn-arrow-circle {
    display: none;
}

.uts-submit-btn.is-loading .uts-btn-spinner {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}

/* Field Validation Errors */
.uts-field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 5px;
    display: none;
}

.uts-form-field.has-error .uts-field-error {
    display: block;
}

.uts-form-field.has-error .uts-input,
.uts-form-field.has-error .uts-select,
.uts-form-field.has-error .uts-country-trigger {
    border-bottom-color: #dc2626 !important;
}

/* Alert Container (Success/Error Toast) */
.uts-form-alert {
    padding: 16px 22px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 16px;
    animation: utsFadeIn 0.3s ease;
}

.uts-form-alert.uts-alert-success {
    background: #F4FAF5;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.uts-form-alert.uts-alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

@keyframes utsFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments for Mobile & Tablet */
@media (max-width: 767px) {
    .uts-booking-card-wrapper {
        padding: 0 !important;
        width: 100% !important;
    }

    .uts-booking-card {
        padding: 24px 20px !important;
        border-radius: 20px !important;
        width: 100% !important;
    }

    .uts-booking-form {
        gap: 20px !important;
        width: 100% !important;
    }

    .uts-form-row-split {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .uts-form-field {
        width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
    }

    .uts-label {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }

    .uts-input {
        font-size: 14px !important;
        padding: 6px 0 !important;
        width: 100% !important;
    }

    .uts-select {
        font-size: 14px !important;
        padding: 6px 28px 6px 0 !important;
        width: 100% !important;
    }

    .uts-country-trigger {
        padding: 6px 0 !important;
        width: 100% !important;
    }

    .uts-country-dropdown {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    .uts-submit-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 13px 24px !important;
        font-size: 15px !important;
    }
}

/* Tablet adjustments (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .uts-booking-card {
        padding: 34px 36px !important;
    }

    .uts-form-row-split {
        gap: 24px !important;
    }
}
