/**
 * UTO Trip Form - Unified UI v5.0.0
 * Shared styles for embedded + popup modes
 * 
 * Features:
 * - Saira font everywhere
 * - Mobile nested sheet (80vh bottom sheet)
 * - Desktop portal dropdown (renders to body, not clipped)
 * - Consistent field heights (44px desktop, 46px mobile)
 * - Date selected highlight (yellow) immediate
 * - Main popup non-scrollable
 * 
 * @since 5.0.0
 */

/* ===== Saira Font Import (single load with swap) ===== */
@import url('https://fonts.googleapis.com/css2?family=Saira:wght@400;500;600;700;800&display=swap');

/* ===== CSS Variables ===== */
.uto-trip-wrap {
    --uto-primary: #FACB05;
    --uto-primary-hover: #e6b800;
    --uto-text: #111827;
    --uto-bg: #ffffff;
    --uto-muted: #6b7280;
    --uto-border: #e5e7eb;
    --uto-field-bg: #f3f4f6;
    --uto-placeholder: #9ca3af;
    --uto-error: #dc2626;
    --uto-radius-card: 14px;
    --uto-radius-field: 12px;
    --uto-radius-panel: 14px;
    --uto-field-height: 44px;
    --uto-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --uto-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --uto-shadow-lg: 0 10px 40px -4px rgba(0, 0, 0, 0.15);
}

/* ===== Scoped Font ===== */
.uto-trip-wrap,
.uto-trip-wrap *,
.uto-trip-portal,
.uto-trip-portal *,
.uto-trip-nested-sheet,
.uto-trip-nested-sheet * {
    font-family: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

/* ===== EMBEDDED FORM CONTAINER ===== */
.uto-trip-embedded {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 12px;
}

.uto-trip-card {
    background: var(--uto-bg);
    border: 1px solid var(--uto-border);
    border-radius: var(--uto-radius-card);
    box-shadow: var(--uto-shadow-md);
    overflow: visible;
}

.uto-trip-header {
    padding: 20px 24px 14px;
}

.uto-trip-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    color: var(--uto-text);
    letter-spacing: 0.2px;
}

.uto-trip-body {
    padding: 0 24px 24px;
}

/* ===== FORM STYLES ===== */
.uto-trip-form {
    position: relative;
}

.uto-trip-field {
    margin-bottom: 14px;
}

.uto-trip-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--uto-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== DROPDOWN TRIGGER (Field) ===== */
.uto-trip-dropdown {
    position: relative;
}

.uto-trip-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--uto-muted);
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.uto-trip-ico svg {
    width: 100%;
    height: 100%;
}

.uto-trip-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--uto-field-height);
    padding: 0 40px 0 38px;
    border: 1px solid var(--uto-border);
    border-radius: var(--uto-radius-field);
    font-size: 14px;
    font-weight: 500;
    background: var(--uto-field-bg);
    color: var(--uto-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    outline: none;
}

.uto-trip-trigger:hover,
.uto-trip-trigger:focus {
    border-color: #cbd5e1;
    box-shadow: var(--uto-shadow-sm);
    background: #fff;
}

.uto-trip-dropdown.open .uto-trip-trigger {
    border-color: var(--uto-primary);
    box-shadow: 0 0 0 2px rgba(250, 203, 5, 0.15);
    background: #fff;
}

.uto-trip-value {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uto-trip-value:not(.uto-trip-placeholder) {
    font-weight: 600;
    color: var(--uto-text);
}

.uto-trip-placeholder {
    color: var(--uto-placeholder);
    font-weight: 500;
}

/* Chevron Icon */
.uto-trip-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--uto-muted);
    transition: transform 0.25s ease;
    pointer-events: none;
}

.uto-trip-chevron svg {
    width: 100%;
    height: 100%;
}

.uto-trip-dropdown.open .uto-trip-chevron {
    transform: translateY(-50%) rotate(180deg);
}

/* Icon highlight on open */
.uto-trip-dropdown.open .uto-trip-ico {
    color: var(--uto-primary);
}

/* ===== WHATSAPP BUTTON ===== */
.uto-trip-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    margin-top: 18px;
    padding: 0 20px;
    border: none;
    border-radius: var(--uto-radius-field);
    background: var(--uto-primary);
    color: var(--uto-text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--uto-shadow-sm);
    position: relative;
    overflow: hidden;
    gap: 10px;
}

.uto-trip-btn:hover:not(:disabled) {
    background: var(--uto-primary-hover);
    box-shadow: var(--uto-shadow-md);
    transform: translateY(-1px);
}

.uto-trip-btn:active:not(:disabled) {
    transform: translateY(0);
}

.uto-trip-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.uto-trip-btn-ico {
    flex-shrink: 0;
}

/* Loading State */
.uto-trip-btn.loading .uto-trip-btn-ico,
.uto-trip-btn.loading .uto-trip-btn-text {
    opacity: 0;
}

.uto-trip-btn-spinner {
    display: none;
}

.uto-trip-btn.loading .uto-trip-btn-spinner {
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--uto-text);
    border-top-color: transparent;
    border-radius: 50%;
    animation: uto-spin 0.7s linear infinite;
}

@keyframes uto-spin {
    to { transform: rotate(360deg); }
}

/* ===== ERROR MESSAGE ===== */
.uto-trip-error {
    margin-top: 12px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--uto-error);
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    text-align: center;
}

/* ===== TRUST STRIP ===== */
.uto-trip-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 0;
}

.uto-trip-trust-label {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.5px;
}

.uto-trip-trust img {
    height: 22px;
    width: auto;
}

.uto-trip-trust-text {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}


/* ==========================================================================
   DESKTOP PORTAL DROPDOWN (renders to body, not clipped by popup)
   ========================================================================== */
.uto-trip-portal {
    position: fixed;
    z-index: 999999;
    background: #fff;
    border: 1px solid var(--uto-border, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 10px 40px -4px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0s 0.2s, transform 0.2s ease;
    overflow: hidden;
    max-height: 320px;
    display: flex;
    flex-direction: column;
}

.uto-trip-portal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0s 0s, transform 0.2s ease;
}

/* Portal when opening upward */
.uto-trip-portal.open-up {
    transform: translateY(8px);
}

.uto-trip-portal.open-up.active {
    transform: translateY(0);
}

/* Portal Options List */
.uto-trip-portal-list {
    overflow-y: auto;
    overscroll-behavior: contain;
    flex: 1;
    padding: 8px 0;
}

.uto-trip-portal-list::-webkit-scrollbar {
    width: 6px;
}

.uto-trip-portal-list::-webkit-scrollbar-track {
    background: transparent;
}

.uto-trip-portal-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* Portal Option Item */
.uto-trip-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    margin: 0 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.uto-trip-option:hover {
    background: #f3f4f6;
}

.uto-trip-option.selected {
    background: rgba(250, 203, 5, 0.15);
}

.uto-trip-option-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uto-trip-option-icon svg {
    width: 20px;
    height: 20px;
}

.uto-trip-option.selected .uto-trip-option-icon {
    color: var(--uto-primary, #FACB05);
}

.uto-trip-option-content {
    flex: 1;
    min-width: 0;
}

.uto-trip-option-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

.uto-trip-option-sub {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.35;
}

/* Vehicle Meta (seats/bags) */
.uto-trip-vehicle-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.uto-trip-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.uto-trip-meta-item svg {
    flex-shrink: 0;
}

/* Portal Empty State */
.uto-trip-portal-empty {
    padding: 24px 14px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}


/* ==========================================================================
   PORTAL DATEPICKER (Calendar)
   ========================================================================== */
.uto-trip-portal.uto-trip-portal-calendar {
    width: 300px;
    padding: 16px;
    max-height: none;
}

.uto-trip-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.uto-trip-calendar-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.uto-trip-calendar-nav {
    display: flex;
    gap: 6px;
}

.uto-trip-calendar-nav-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.uto-trip-calendar-nav-btn:hover {
    background: #e5e7eb;
}

.uto-trip-calendar-nav-btn svg {
    width: 16px;
    height: 16px;
}

.uto-trip-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}

.uto-trip-weekday {
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-align: center;
    padding: 6px 0;
    text-transform: uppercase;
}

.uto-trip-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.uto-trip-day {
    aspect-ratio: 1;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.uto-trip-day:hover:not(:disabled):not(.other-month) {
    background: #f3f4f6;
}

.uto-trip-day.today {
    border: 2px solid var(--uto-primary, #FACB05);
    font-weight: 700;
}

/* SELECTED DATE - YELLOW HIGHLIGHT (IMMEDIATE) */
.uto-trip-day.selected {
    background: var(--uto-primary, #FACB05) !important;
    color: #111827 !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(250, 203, 5, 0.4);
    transform: scale(1.05);
}

.uto-trip-day:disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.uto-trip-day.other-month {
    color: #d1d5db;
    opacity: 0.5;
    pointer-events: none;
}


/* ==========================================================================
   MAIN POPUP OVERLAY (fixed, NON-SCROLLABLE)
   ========================================================================== */
.uto-trip-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999990;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    /* CRITICAL: Main popup must NOT scroll */
    overflow: hidden !important;
}

.uto-trip-popup-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

/* ===== POPUP MODAL (non-scrollable container) ===== */
.uto-trip-popup {
    position: relative;
    max-width: 400px;
    width: 92%;
    background: var(--uto-bg, #fff);
    border-radius: var(--uto-radius-card, 14px);
    box-shadow: 0 20px 60px -8px rgba(0, 0, 0, 0.25);
    /* CRITICAL: No overflow, no scroll on main popup */
    overflow: visible;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Max height but no scroll */
    max-height: calc(100vh - 40px);
}

.uto-trip-popup-overlay.active .uto-trip-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.uto-trip-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--uto-border, #e5e7eb);
    flex-shrink: 0;
}

.uto-trip-popup-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--uto-text, #111827);
}

.uto-trip-popup-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.uto-trip-popup-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.uto-trip-popup-body {
    padding: 18px 22px 22px;
    flex-shrink: 0;
    /* NO overflow here - popup must fit */
    overflow: visible;
}

/* Popup Trust Strip */
.uto-trip-popup-body .uto-trip-trust {
    margin-top: 14px;
    padding: 8px 0;
}


/* ==========================================================================
   MOBILE NESTED SHEET (BOTTOM SHEET for Route/Vehicle/Date)
   Height: 80vh, slides from bottom, scrolls internally
   ========================================================================== */
.uto-trip-nested-sheet {
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.uto-trip-nested-sheet.active {
    pointer-events: auto;
    opacity: 1;
}

/* Backdrop */
.uto-trip-nested-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.uto-trip-nested-sheet.active .uto-trip-nested-backdrop {
    opacity: 1;
}

/* Sheet Panel - FULL SCREEN on mobile */
.uto-trip-nested-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    max-height: 100vh;
    background: #fff;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}

.uto-trip-nested-sheet.active .uto-trip-nested-panel {
    transform: translateY(0);
}

/* Sheet Header (sticky at top) */
.uto-trip-nested-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: #fff;
    border-radius: 0;
    z-index: 10;
}

.uto-trip-nested-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s ease;
}

.uto-trip-nested-back:hover {
    background: #e5e7eb;
}

.uto-trip-nested-back svg {
    width: 18px;
    height: 18px;
}

.uto-trip-nested-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    text-align: center;
    flex: 1;
}

.uto-trip-nested-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s ease;
}

.uto-trip-nested-close:hover {
    background: #e5e7eb;
}

.uto-trip-nested-close svg {
    width: 16px;
    height: 16px;
}

/* Sheet Body (scrollable - takes remaining height) */
.uto-trip-nested-body {
    flex: 1;
    height: calc(100vh - 70px); /* 100vh minus header height (~70px) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 0;
}

/* Sheet Options List */
.uto-trip-nested-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.uto-trip-nested-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

.uto-trip-nested-option:last-child {
    border-bottom: none;
}

.uto-trip-nested-option:hover {
    background: #f9fafb;
}

.uto-trip-nested-option.selected {
    background: rgba(250, 203, 5, 0.12);
}

.uto-trip-nested-option-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uto-trip-nested-option-icon svg {
    width: 22px;
    height: 22px;
}

.uto-trip-nested-option.selected .uto-trip-nested-option-icon {
    color: var(--uto-primary, #FACB05);
}

.uto-trip-nested-option-content {
    flex: 1;
    min-width: 0;
}

.uto-trip-nested-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.uto-trip-nested-option-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.4;
}

/* Checkmark for selected */
.uto-trip-nested-option-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    opacity: 0;
    color: var(--uto-primary, #FACB05);
    transition: opacity 0.15s ease;
}

.uto-trip-nested-option.selected .uto-trip-nested-option-check {
    opacity: 1;
}


/* ==========================================================================
   NESTED SHEET CALENDAR (Date picker inside sheet)
   ========================================================================== */
.uto-trip-nested-calendar {
    padding: 16px 20px;
}

.uto-trip-nested-calendar .uto-trip-calendar-header {
    margin-bottom: 16px;
}

.uto-trip-nested-calendar .uto-trip-calendar-title {
    font-size: 16px;
}

.uto-trip-nested-calendar .uto-trip-calendar-days {
    gap: 4px;
}

.uto-trip-nested-calendar .uto-trip-day {
    font-size: 14px;
    min-height: 44px;
}


/* ==========================================================================
   BODY SCROLL LOCK (when main popup open)
   ========================================================================== */
body.uto-trip-popup-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

html.uto-trip-popup-open,
html.uto-trip-popup-open body {
    overflow: hidden !important;
    -webkit-overflow-scrolling: auto;
}

/* Additional lock when nested sheet is open */
body.uto-trip-nested-open {
    overflow: hidden !important;
}


/* ==========================================================================
   RESPONSIVE - MOBILE (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .uto-trip-wrap {
        --uto-field-height: 46px;
    }
    
    .uto-trip-embedded {
        padding: 0 8px;
    }
    
    .uto-trip-header {
        padding: 16px 18px 12px;
    }
    
    .uto-trip-title {
        font-size: 20px;
    }
    
    .uto-trip-body {
        padding: 0 18px 20px;
    }
    
    .uto-trip-trigger {
        height: var(--uto-field-height);
        font-size: 15px;
    }
    
    .uto-trip-btn {
        height: 48px;
        font-size: 15px;
    }
    
    /* Popup adjustments - Mobile slide-up from bottom */
    .uto-trip-popup-overlay {
        padding: 0;
        align-items: flex-end;
        justify-content: center;
    }
    
    .uto-trip-popup {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        height: 70vh;
        max-height: 70vh;
        border-radius: 15px 15px 0 0;
        margin: 0;
        overflow: hidden;
    }
    
    .uto-trip-popup-header {
        padding: 14px 18px 12px;
    }
    
    .uto-trip-popup-title {
        font-size: 17px;
    }
    
    .uto-trip-popup-body {
        padding: 14px 18px 18px;
        overflow: hidden;
    }
    
    /* Trust strip compact */
    .uto-trip-trust {
        margin-top: 14px;
        gap: 8px;
    }
    
    .uto-trip-trust-label,
    .uto-trip-trust-text {
        font-size: 12px;
    }
    
    .uto-trip-trust img {
        height: 18px;
    }
}


/* ==========================================================================
   REDUCED MOTION SUPPORT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .uto-trip-portal,
    .uto-trip-popup,
    .uto-trip-popup-overlay,
    .uto-trip-nested-sheet,
    .uto-trip-nested-panel,
    .uto-trip-nested-backdrop,
    .uto-trip-btn,
    .uto-trip-trigger,
    .uto-trip-day {
        transition: none !important;
    }
    
    .uto-trip-btn-spinner {
        animation: none;
    }
}


/* ==========================================================================
   FIELD VALIDATION ERROR STATES
   ========================================================================== */
.uto-trip-field.has-error .uto-trip-trigger {
    border-color: var(--uto-error, #dc2626) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.uto-trip-field.has-error .uto-trip-label {
    color: var(--uto-error, #dc2626);
}

/* Error message container (optional, shown beneath field) */
.uto-trip-field .uto-trip-field-error {
    display: none;
    color: var(--uto-error, #dc2626);
    font-size: 11px;
    font-weight: 500;
    margin-top: 4px;
    padding-left: 2px;
}

.uto-trip-field.has-error .uto-trip-field-error {
    display: block;
}


/* ==========================================================================
   HIGH CONTRAST SUPPORT
   ========================================================================== */
@media (prefers-contrast: high) {
    .uto-trip-trigger,
    .uto-trip-btn {
        border: 2px solid var(--uto-text);
    }
    
    .uto-trip-portal,
    .uto-trip-nested-panel {
        border: 2px solid #000;
    }
}
