/* ==========================================
   Allo Rania VTC — Booking Form Styles
   ========================================== */


.uber-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 25px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, sans-serif;
}
.uber-box h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}
.uber-box input, .uber-box select, .uber-box button {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.uber-box button {
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}
.uber-box button:hover {
    background: #333;
}
.uber-box #result {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    display: none;
}
.uber-box #price {
    color: #000;
    font-size: 28px;
    text-align: center;
    margin: 10px 0;
}
.uber-box .trip-type {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}
.uber-box .trip-type label {
    flex: 1;
    padding: 10px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}
.uber-box .trip-type input[type="radio"] {
    display: none;
}
.uber-box .trip-type input[type="radio"]:checked + label {
    border-color: #000;
    background: #f0f0f0;
    font-weight: bold;
}
.vehicle-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}
.vehicle-option {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.vehicle-option:hover {
    border-color: #999;
    transform: translateY(-2px);
}
.vehicle-option.selected {
    border-color: #000;
    background: #f8f8f8;
}
.vehicle-option input {
    display: none;
}
.vehicle-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}
.vehicle-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}
.vehicle-price {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
.vehicle-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.vehicle-option.selected .vehicle-badge {
    display: flex;
}
.address-input-wrapper {
    position: relative;
}
.address-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 2;
}
.address-input-wrapper input {
    padding-left: 40px !important;
}
.pac-container {
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    font-family: 'Segoe UI', sans-serif;
}
.pac-item {
    padding: 10px 12px;
    cursor: pointer;
}
.pac-item:hover {
    background: #f5f5f5;
}
.pac-icon {
    margin-right: 10px;
}
.input-icon-wrapper {
    position: relative;
}
.input-icon-wrapper .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 2;
}
.input-icon-wrapper input, .input-icon-wrapper select {
    padding-left: 40px !important;
}
.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
.zone-info {
    background: #e8f4fd;
    border-left: 4px solid #2196F3;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #1565C0;
    display: none;
}
.zone-info.active {
    display: block;
}
.zone-info.night {
    background: #1a237e;
    border-left-color: #ff9800;
    color: #fff;
}
.flight-field {
    display: none;
}
.flight-field.active {
    display: block;
}
.options-section {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}
.options-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}
.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}
.option-row label {
    flex: 1;
    font-size: 14px;
}
.option-row input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.option-row select {
    flex: 1;
    margin: 0;
}
.price-breakdown {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    font-size: 13px;
}
.price-breakdown .row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #eee;
}
.price-breakdown .row:last-child {
    border-bottom: none;
    font-weight: bold;
    font-size: 15px;
    color: #000;
    margin-top: 5px;
    padding-top: 8px;
    border-top: 2px solid #000;
}
.price-breakdown .row.night {
    color: #1a237e;
    background: #fff8e1;
    padding: 6px 8px;
    border-radius: 4px;
    margin: 2px 0;
}
.night-indicator {
    display: none;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    margin: 10px 0;
    font-weight: 500;
}
.night-indicator.active {
    display: block;
}
.night-indicator .moon {
    font-size: 16px;
    margin-right: 5px;
}

/* ====== MAP PICKER STYLES ====== */

/* ====== RESPONSIVE MOBILE & TABLETTE ======

/* Tablette (768px) */
@media (max-width: 768px) {
    .uber-box { margin: 10px; padding: 20px 16px; border-radius: 10px; }
    .uber-box h2 { font-size: 20px; }
    .uber-box input, .uber-box select, .uber-box button { font-size: 15px; padding: 12px 14px; margin: 6px 0; }
    .vehicle-selector { gap: 8px; }
    .vehicle-option { padding: 12px 6px; }
    .vehicle-icon { font-size: 28px; }
    .vehicle-name { font-size: 12px; }
    .uber-box .trip-type label { padding: 10px 6px; font-size: 13px; }
    .pac-container { z-index: 9999 !important; }
    .pac-item { padding: 12px; font-size: 14px; }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .uber-box { margin: 0; padding: 16px 14px; border-radius: 0; box-shadow: none; border-top: 3px solid #000; }
    .uber-box h2 { font-size: 18px; margin-bottom: 14px; }
    .uber-box input, .uber-box select { font-size: 16px; padding: 13px; margin: 5px 0; border-radius: 8px; -webkit-appearance: none; appearance: none; }
    .uber-box button { font-size: 16px; padding: 14px; margin: 6px 0; border-radius: 8px; }
    .address-input-wrapper input, .input-icon-wrapper input, .input-icon-wrapper select { padding-left: 38px !important; font-size: 16px !important; }
    .address-icon, .input-icon-wrapper .input-icon { font-size: 16px; left: 11px; }
    .vehicle-selector { gap: 6px; margin: 12px 0; }
    .vehicle-option { padding: 10px 4px; border-radius: 8px; }
    .vehicle-icon { font-size: 24px; margin-bottom: 4px; }
    .vehicle-name { font-size: 11px; }
    .uber-box .trip-type { gap: 6px; }
    .uber-box .trip-type label { padding: 10px 5px; font-size: 13px; }
    .options-section { padding: 12px; margin: 12px 0; }
    .option-row label { font-size: 13px; }
    .uber-box #price { font-size: 30px; }
    .price-breakdown { font-size: 13px; padding: 10px; }
    .price-breakdown .row:last-child { font-size: 15px; }
    .night-indicator { font-size: 12px; padding: 8px 12px; }
    .zone-info { font-size: 12px; padding: 8px 12px; }
    #confirm-btn { font-size: 17px !important; padding: 16px !important; margin-top: 10px; }
    .pac-container { z-index: 99999 !important; max-width: calc(100vw - 28px); }
    .pac-item { padding: 13px 12px; }
}

/* Très petits écrans (360px) */
@media (max-width: 360px) {
    .vehicle-icon { font-size: 20px; }
    .vehicle-name { font-size: 10px; }
    .uber-box .trip-type label { font-size: 12px; padding: 9px 3px; }
}

/* Tactile */
@media (hover: none) and (pointer: coarse) {
    .vehicle-option { -webkit-tap-highlight-color: transparent; }
    .vehicle-option:active { transform: scale(0.96); transition: transform 0.1s; }
    .uber-box button:active { opacity: 0.82; transform: scale(0.98); }
}
