/**
 * Prenota il Biglietto — Stili
 * FILE: prenota-biglietto/css/prenota-biglietto.css
 */

/* =========================================================================
   LAYOUT
   ========================================================================= */

main#content div#main-content.site-content {
    width: 100%;
}

main#content .row-content {
    display: flex;
}

main#content .row-content .article-content {
    flex: 1;
    min-width: 0;
    padding: 30px;
    box-sizing: border-box;
}

main#content .row-content .article-content .form-wrapper {
    max-width: 656px;
    margin: 0 auto;
    background: #fcfcfc;
    border-radius: 12px;
    border: 1px solid #ccc;
    padding: 40px;
}

@media (min-width: 1240px) {
    main#content .row-content aside {
        flex: 0 0 33%;
    }
}

/* =========================================================================
   FORM WRAPPER
   ========================================================================= */

#prenota-form-wrap {
    margin-top: 30px;
}

/* =========================================================================
   CAMPI TESTO / EMAIL / TEL / NUMBER / TEXTAREA
   ========================================================================= */

#prenota-form input[type="text"],
#prenota-form input[type="email"],
#prenota-form input[type="tel"],
#prenota-form input[type="number"],
#prenota-form textarea {
    padding: 15px 25px;
    width: 100%;
    font-size: 15px;
    background: #FFF;
    border: 1px solid #ddd;
    box-sizing: border-box;
    margin-bottom: 0;
}

#prenota-form input[type="text"]:focus,
#prenota-form input[type="email"]:focus,
#prenota-form input[type="tel"]:focus,
#prenota-form input[type="number"]:focus,
#prenota-form textarea:focus {
    border-color: #1797ce;
    outline: none;
}

/* =========================================================================
   SELECT DINAMICI
   ========================================================================= */

#prenota-form select {
    padding: 14px 20px;
    width: 100%;
    font-size: 15px;
    background: #FFF;
    border: 1px solid #ddd;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    transition: border-color .2s;
}

#prenota-form select:focus {
    border-color: #1797ce;
    outline: none;
}

#prenota-form select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Rende visibile che la lista è scrollabile quando ha molte opzioni:
   limita l'altezza del dropdown nativo e forza la scrollbar a comparire
   (comportamento supportato in Chrome/Edge; Firefox/Safari gestiscono
   la propria UI nativa ma l'altezza massima resta comunque rispettata) */
#prenota-form select {
    max-height: 280px;
}

#prenota-form select::-webkit-scrollbar {
    width: 14px;
}

#prenota-form select::-webkit-scrollbar-track {
    background: #f0f0f0;
}

#prenota-form select::-webkit-scrollbar-thumb {
    background: #1797ce;
    border-radius: 7px;
    border: 3px solid #f0f0f0;
}

/* =========================================================================
   LABELS
   ========================================================================= */

#prenota-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.required {
    color: #cc0000;
}

/* =========================================================================
   FORM GROUP
   ========================================================================= */

#prenota-form-wrap .form-group {
    margin-bottom: 18px;
}

/* =========================================================================
   CHECKBOX CONSENSI
   ========================================================================= */

#prenota-form input[type="checkbox"] {
    vertical-align: middle;
    width: auto;
    margin-right: 4px;
}

/* =========================================================================
   SUBMIT
   ========================================================================= */

#pb-submit {
    color: #FFF;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding: 10px 40px;
    border: none;
    background: #1797ce;
    cursor: pointer;
    transition: background .2s, opacity .2s;
    width: 100%;
}

#pb-submit:hover:not(:disabled) {
    background: #1279a8;
}

#pb-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* =========================================================================
   FEEDBACK (successo / errore)
   ========================================================================= */

.prenota-feedback {
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid transparent;
    border-radius: 2px;
}

.prenota-feedback--success {
    background: #eaf7ee;
    border-color: #28a745;
    color: #1a5c2e;
}

.prenota-feedback--error {
    background: #fdf2f2;
    border-color: #dc3545;
    color: #7b1a1a;
}

/* =========================================================================
   NOTICE PRE-SELEZIONE SPETTACOLO
   ========================================================================= */

.prenota-notice {
    padding: 10px 18px;
    background: #f0f7fc;
    border-left: 4px solid #1797ce;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1a4a60;
}

/* =========================================================================
   LOADING / ERRORE CARICAMENTO
   ========================================================================= */

.prenota-loading-msg {
    font-size: 14px;
    color: #555;
    padding: 10px 0;
}

.prenota-error-msg {
    padding: 10px 18px;
    background: #fdf2f2;
    border-left: 4px solid #dc3545;
    font-size: 14px;
    color: #7b1a1a;
}

/* =========================================================================
   NOTA SETTORI NON DISPONIBILI
   ========================================================================= */

.prenota-settori-vuoti {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    font-style: italic;
}

.prenota-field-note {
    font-size: 12px;
    color: #1797ce;
    margin-top: 6px;
    font-style: italic;
}

/* =========================================================================
   INTRO PAGINA
   ========================================================================= */

.page-intro {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
}
