/* ═══════════════════════════════════════════════════════════════
   ISOLA CONNECT - NOLEGGIO BOOKING CSS v2.1
   Ottimizzato mobile
   ═══════════════════════════════════════════════════════════════ */

/* Override popup per noleggio - più compatto */
.noleggio-popup {
    padding: 10px !important;
}

.noleggio-popup .noleggio-content {
    max-height: 95vh;
    max-width: 420px !important;
    overflow-y: auto;
    padding-bottom: 20px;
    border-radius: 14px !important;
}

.noleggio-header {
    background: linear-gradient(135deg, #FF6B35, #FF8A5C) !important;
    padding: 16px !important;
}

.noleggio-header h2 { font-size: 18px !important; }

/* Step title */
.nol-step-title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
    padding: 0 12px;
}

/* Type grid */
.nol-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 12px;
}

.nol-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.nol-type-btn:hover, .nol-type-btn:active {
    border-color: #FF6B35;
    background: #fff8f5;
}

.nol-type-icon { font-size: 26px; }
.nol-type-name { font-weight: 700; font-size: 13px; color: #333; }
.nol-type-price { font-size: 12px; color: #FF6B35; font-weight: 600; }
.nol-type-avail { font-size: 10px; color: #888; }

/* Selected badge */
.nol-selected-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FF6B35, #FF8A5C);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 14px 12px;
}

/* Back button */
.nol-back-btn {
    background: none;
    border: none;
    color: #FF6B35;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    margin-bottom: 4px;
}

/* Form */
.nol-form-section {
    margin: 0 14px 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.nol-section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.nol-form-group { margin-bottom: 10px; }
.nol-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.nol-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nol-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.nol-input:focus {
    outline: none;
    border-color: #FF6B35;
    background: white;
}

/* Date input mobile fix */
input[type="date"].nol-input {
    font-size: 13px;
    min-height: 42px;
}

/* Durata badge */
.nol-durata-badge {
    background: #fff3ed;
    color: #FF6B35;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
}

/* Prezzo dettaglio */
.nol-prezzo-dettaglio {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 12px;
    margin-top: 8px;
    text-align: center;
}

.nol-prezzo-totale {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nol-prezzo-label {
    font-size: 13px;
    font-weight: 600;
    color: #166534;
}

.nol-prezzo-valore {
    font-size: 22px;
    font-weight: 800;
    color: #166534;
}

.nol-prezzo-sub {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Radio */
.nol-radio-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.nol-radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* Submit */
.nol-submit-btn {
    width: calc(100% - 28px);
    margin: 10px 14px 0;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    color: white;
    background: linear-gradient(135deg, #FF6B35, #FF8A5C);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.nol-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nol-disclaimer {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin-top: 10px;
    padding: 0 14px;
}

/* Conferma */
.nol-confirmation { text-align: center; padding: 16px 14px; }

.nol-confirm-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    text-align: left;
}

.nol-confirm-row {
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}
.nol-confirm-row:last-child { border-bottom: none; }

/* Buttons WhatsApp / Call */
.nol-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.nol-btn-call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0077B6;
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.nol-btn-close {
    background: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
}

/* Contact only screen padding */
.noleggio-content div[style*="text-align:center"] {
    padding: 20px 14px;
}

/* Responsive - very small screens */
@media (max-width: 360px) {
    .nol-type-grid { grid-template-columns: 1fr; }
    .nol-form-row { grid-template-columns: 1fr; }
    .nol-type-btn { padding: 10px 6px; }
}
