/* ============================================
   Gaja Transfer Booking Widget v6
   Single form, inline contact
   ============================================ */

:root {
    --gaja-gold: #F8B54A;
    --gaja-gold-hover: #e5a23c;
    --gaja-gold-light: rgba(248, 181, 74, 0.06);
    --gaja-gold-border: rgba(248, 181, 74, 0.25);
    --gaja-dark: #1a1a1a;
    --gaja-dark-2: #212121;
    --gaja-dark-3: #2a2a2a;
    --gaja-text: #f0f0f0;
    --gaja-text-muted: #999999;
    --gaja-bg-input: #2a2a2a;
    --gaja-border: #363636;
    --gaja-red: #e74c3c;
    --gaja-radius: 10px;
    --gaja-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gaja-booking-widget {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gaja-dark);
    border: 1px solid var(--gaja-border);
    border-radius: var(--gaja-radius);
    overflow: visible;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--gaja-text);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
    position: relative;
}
.gaja-booking-widget * { box-sizing: border-box; }

/* Header */
.gaja-bw-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px 0;
}
.gaja-bw-header-icon {
    width: 50px; height: 50px;
    border-radius: var(--gaja-radius);
    background: var(--gaja-gold);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--gaja-dark);
}
.gaja-bw-title {
    margin: 0; font-size: 22px; font-weight: 700;
    color: #ffffff !important; line-height: 1.3;
}
.gaja-bw-subtitle {
    margin: 3px 0 0; font-size: 13.5px;
    color: var(--gaja-text-muted); line-height: 1.4;
}

/* Form */
.gaja-bw-form-body { padding: 22px 32px 32px; }
.gaja-bw-field { margin-bottom: 18px; }
.gaja-bw-field label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--gaja-text); margin-bottom: 7px;
}
.gaja-req { color: var(--gaja-gold); }

/* All inputs — consistent radius */
.gaja-bw-field input[type="text"],
.gaja-bw-field input[type="email"],
.gaja-bw-field input[type="tel"],
.gaja-bw-field input[type="date"],
.gaja-bw-field select,
.gaja-bw-field textarea,
.gaja-bw-phone-code,
.gaja-bw-time-select {
    width: 100%; padding: 12px 15px;
    font-size: 14px; font-family: inherit;
    color: var(--gaja-text); background: var(--gaja-bg-input);
    border: 1px solid var(--gaja-border);
    border-radius: var(--gaja-radius) !important;
    outline: none;
    transition: border-color var(--gaja-transition), box-shadow var(--gaja-transition);
    -webkit-appearance: none; appearance: none;
}
.gaja-bw-field input:focus,
.gaja-bw-field select:focus,
.gaja-bw-field textarea:focus,
.gaja-bw-phone-code:focus,
.gaja-bw-time-select:focus {
    border-color: var(--gaja-gold);
    box-shadow: 0 0 0 3px rgba(248, 181, 74, 0.12);
}
.gaja-bw-field input::placeholder,
.gaja-bw-field textarea::placeholder { color: #555; }
.gaja-bw-field textarea { resize: vertical; min-height: 84px; }

/* Date — normal with calendar icon */
.gaja-bw-field input[type="date"] { cursor: pointer; }
.gaja-bw-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.7); cursor: pointer;
}

/* Rows */
.gaja-bw-row { display: flex; gap: 16px; }
.gaja-bw-row-2 > .gaja-bw-field { flex: 1; }

/* Phone */
.gaja-bw-phone-wrap { display: flex; gap: 10px; }
.gaja-bw-phone-code {
    width: 180px !important; flex-shrink: 0;
    padding: 12px 10px !important; font-size: 13px !important;
    background: var(--gaja-bg-input) !important;
    color: var(--gaja-text) !important;
    border: 1px solid var(--gaja-border) !important;
    cursor: pointer;
}
.gaja-bw-phone-input { flex: 1; }

/* Time 24h */
.gaja-bw-time-wrap { display: flex; align-items: center; gap: 6px; }
.gaja-bw-time-select {
    flex: 1; padding: 12px 10px !important;
    font-size: 14px !important; font-family: inherit !important;
    color: var(--gaja-text) !important; background: var(--gaja-bg-input) !important;
    border: 1px solid var(--gaja-border) !important;
    outline: none; cursor: pointer; text-align: center; min-width: 0;
}
.gaja-bw-time-sep {
    color: var(--gaja-text-muted); font-size: 18px;
    font-weight: 700; line-height: 1; flex-shrink: 0;
}

/* Vehicle Dropdown */
.gaja-bw-vehicle-dropdown { position: relative; z-index: 50; }
.gaja-bw-vehicle-selected {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 15px; background: var(--gaja-bg-input);
    border: 1px solid var(--gaja-border); border-radius: var(--gaja-radius);
    cursor: pointer; min-height: 46px;
    transition: border-color var(--gaja-transition), box-shadow var(--gaja-transition);
}
.gaja-bw-vehicle-selected:focus,
.gaja-bw-vehicle-selected.open {
    border-color: var(--gaja-gold);
    box-shadow: 0 0 0 3px rgba(248, 181, 74, 0.12);
}
.gaja-bw-vehicle-placeholder { color: #555; font-size: 14px; }
.gaja-bw-vehicle-selected .gaja-bw-selected-display {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 500; color: var(--gaja-text);
}
.gaja-bw-vehicle-selected .gaja-bw-selected-display img {
    width: 40px; height: 40px; object-fit: contain;
    border-radius: 6px; background: #fff;
}
.gaja-bw-chevron {
    flex-shrink: 0; color: var(--gaja-text-muted);
    transition: transform var(--gaja-transition);
}
.gaja-bw-vehicle-selected.open .gaja-bw-chevron { transform: rotate(180deg); }
.gaja-bw-vehicle-options {
    display: none; position: absolute; top: calc(100% + 6px);
    left: 0; right: 0; z-index: 200;
    background: var(--gaja-dark-2); border: 1px solid var(--gaja-border);
    border-radius: var(--gaja-radius);
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
    overflow: visible;
}
.gaja-bw-vehicle-options.open { display: block; }
.gaja-bw-vehicle-option {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px; cursor: pointer;
    transition: background var(--gaja-transition);
    border-bottom: 1px solid var(--gaja-border);
}
.gaja-bw-vehicle-option:first-child { border-radius: var(--gaja-radius) var(--gaja-radius) 0 0; }
.gaja-bw-vehicle-option:last-child { border-bottom: none; border-radius: 0 0 var(--gaja-radius) var(--gaja-radius); }
.gaja-bw-vehicle-option:hover:not(.gaja-bw-unavailable) { background: var(--gaja-gold-light); }
.gaja-bw-vehicle-option img {
    width: 100px; height: 100px; object-fit: contain;
    border-radius: 8px; background: #fff; flex-shrink: 0;
}
.gaja-bw-vehicle-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gaja-bw-vehicle-name { font-size: 15px; font-weight: 600; color: var(--gaja-text); }
.gaja-bw-vehicle-meta { font-size: 12.5px; color: var(--gaja-text-muted); }
.gaja-bw-vehicle-option.gaja-bw-unavailable { cursor: not-allowed; opacity: 0.45; }
.gaja-bw-vehicle-option.gaja-bw-unavailable img { filter: grayscale(1); }
.gaja-bw-vehicle-option.gaja-bw-unavailable .gaja-bw-vehicle-name { color: var(--gaja-text-muted); }
.gaja-bw-unavailable-badge {
    font-size: 11px; font-weight: 700; color: var(--gaja-red);
    background: rgba(231,76,60,0.12); padding: 5px 12px;
    border-radius: 20px; white-space: nowrap;
    text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0;
}

/* Error */
.gaja-bw-error {
    background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3);
    color: var(--gaja-red); font-size: 13px; padding: 10px 14px;
    border-radius: var(--gaja-radius); margin-bottom: 18px;
}

/* Submit */
.gaja-bw-submit {
    width: 100%; padding: 15px; font-size: 15px; font-weight: 700;
    font-family: inherit; color: var(--gaja-dark);
    background: var(--gaja-gold); border: none;
    border-radius: var(--gaja-radius); cursor: pointer;
    transition: background var(--gaja-transition), transform 0.15s ease, box-shadow var(--gaja-transition);
}
.gaja-bw-submit:hover {
    background: var(--gaja-gold-hover);
    box-shadow: 0 4px 16px rgba(248,181,74,0.3);
}
.gaja-bw-submit:active { transform: scale(0.985); }

/* ============================================
   Inline Contact — replaces submit button
   ============================================ */
.gaja-bw-inline-contact {
    animation: gajaFadeIn 0.35s ease;
}
@keyframes gajaFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.gaja-bw-inline-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--gaja-text-muted);
    margin: 0 0 16px;
}

.gaja-bw-inline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gaja-bw-contact-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 12px 20px;
    background: var(--gaja-dark-3);
    border: 2px solid var(--gaja-border);
    border-radius: var(--gaja-radius);
    cursor: pointer;
    font-family: inherit;
    color: var(--gaja-text);
    transition: border-color var(--gaja-transition), background var(--gaja-transition), box-shadow var(--gaja-transition), transform 0.18s ease;
    text-align: center;
}
.gaja-bw-contact-btn:hover {
    border-color: var(--gaja-gold);
    background: rgba(248, 181, 74, 0.05);
    box-shadow: 0 4px 20px rgba(248, 181, 74, 0.12);
    transform: translateY(-2px);
}
.gaja-bw-contact-btn:active {
    transform: translateY(0) scale(0.98);
}

.gaja-bw-contact-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gaja-gold);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--gaja-dark);
    transition: background var(--gaja-transition);
    margin: 0 auto;
}
.gaja-bw-contact-icon svg {
    display: block;
}
.gaja-bw-contact-btn:hover .gaja-bw-contact-icon {
    background: var(--gaja-gold-hover);
}

.gaja-bw-wa-icon {
    background: #25D366 !important;
    color: #fff !important;
}
.gaja-bw-contact-btn:hover .gaja-bw-wa-icon {
    background: #1da851 !important;
}

.gaja-bw-contact-btn span {
    display: block;
    width: 100%;
    font-size: 13px; font-weight: 600;
    text-align: center;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .gaja-bw-header { padding: 24px 24px 0; }
    .gaja-bw-form-body { padding: 20px 24px 28px; }
}
@media (max-width: 600px) {
    .gaja-bw-header { padding: 20px 18px 0; }
    .gaja-bw-form-body { padding: 16px 18px 24px; }
    .gaja-bw-row { flex-direction: column; gap: 0; }
    .gaja-bw-phone-wrap { flex-direction: column; }
    .gaja-bw-phone-code { width: 100% !important; }
    .gaja-bw-vehicle-option img { width: 72px; height: 72px; }
    .gaja-bw-time-wrap { flex-wrap: wrap; }
    .gaja-bw-title { font-size: 19px; }
    .gaja-bw-inline-grid { grid-template-columns: 1fr; gap: 10px; }
    .gaja-bw-contact-btn {
        flex-direction: row; gap: 14px;
        padding: 14px 18px; text-align: left;
    }
    .gaja-bw-contact-icon { width: 42px; height: 42px; }
}
