/**
 * gaxa-contattaci.css
 * Stili per il wizard Contattaci — Gaxa Energia.
 *
 * Tutti i selettori sono prefissati con #gaxa-wizard per garantire
 * alta specificità e isolare da Avada Fusion Builder senza !important.
 *
 * Colori brand:
 *   Blu primario  : #003478
 *   Verde primario: #00965E
 *   Verde scuro   : #1d915d
 *   Verde chiaro  : #e0eeef
 */

/* ============================================================
   Container principale
   ============================================================ */

#gaxa-wizard {
    font-family: inherit;
    width: 100%;
    max-width: 100%;
    padding: 24px 0;
    box-sizing: border-box;
    color: #222222;
    line-height: 1.5;
}

#gaxa-wizard *,
#gaxa-wizard *::before,
#gaxa-wizard *::after {
    box-sizing: border-box;
}

#gaxa-wizard-inner {
    width: 100%;
}

/* ============================================================
   Titoli e sottotitoli step
   ============================================================ */

#gaxa-wizard .gaxa-step-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #003478;
    margin: 0 0 8px;
    line-height: 1.2;
}

#gaxa-wizard .gaxa-step-subtitle {
    font-size: 1rem;
    color: #555555;
    margin: 0 0 24px;
}

/* ============================================================
   Breadcrumb
   ============================================================ */

#gaxa-wizard .gaxa-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
    padding: 10px 14px;
    background-color: #f5f5f5;
    border-radius: 6px;
    font-size: 0.875rem;
}

#gaxa-wizard .gaxa-breadcrumb-item {
    background: none;
    border: none;
    padding: 2px 6px;
    cursor: pointer;
    color: #003478;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    border-radius: 4px;
    transition: color 0.15s, background-color 0.15s;
}

#gaxa-wizard .gaxa-breadcrumb-item:hover,
#gaxa-wizard .gaxa-breadcrumb-item:focus {
    color: #1d915d;
    background-color: #e0eeef;
    outline: 2px solid #00965E;
    outline-offset: 2px;
}

#gaxa-wizard .gaxa-breadcrumb-sep {
    color: #999999;
    pointer-events: none;
    user-select: none;
}

/* ============================================================
   Card grid — griglia di selezione
   ============================================================ */

#gaxa-wizard .gaxa-card-grid {
    display: grid;
    grid-template-columns: repeat( 3, 1fr );
    gap: 16px;
    margin-bottom: 24px;
}

@media ( max-width: 640px ) {
    #gaxa-wizard .gaxa-card-grid {
        grid-template-columns: 1fr;
    }
}

@media ( min-width: 641px ) and ( max-width: 900px ) {
    #gaxa-wizard .gaxa-card-grid {
        grid-template-columns: repeat( 2, 1fr );
    }
}

/* ============================================================
   Card singola
   ============================================================ */

#gaxa-wizard .gaxa-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    background-color: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
    user-select: none;
    min-height: 110px;
}

#gaxa-wizard .gaxa-card:hover {
    border-color: #00965E;
    background-color: #f0faf5;
}

#gaxa-wizard .gaxa-card:focus {
    outline: 3px solid #003478;
    outline-offset: 2px;
    border-color: #003478;
}

#gaxa-wizard .gaxa-card.selected {
    border-color: #00965E;
    background-color: #00965E;
    box-shadow: 0 0 0 3px rgba(0, 150, 94, 0.25);
}

#gaxa-wizard .gaxa-card-icon-box {
    width: 48px;
    height: 48px;
    background-color: #f2f2f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    flex-shrink: 0;
    transition: background-color 0.15s, color 0.15s;
}

#gaxa-wizard .gaxa-card-icon-box svg {
    width: 24px;
    height: 24px;
    display: block;
}

#gaxa-wizard .gaxa-card:hover .gaxa-card-icon-box {
    background-color: #e0eeef;
    color: #00965E;
}

#gaxa-wizard .gaxa-card.selected .gaxa-card-icon-box {
    background-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

#gaxa-wizard .gaxa-card-label {
    font-size: 1rem;
    font-weight: 700;
    color: #003478;
    display: block;
}

#gaxa-wizard .gaxa-card.selected .gaxa-card-label {
    color: #ffffff;
}

#gaxa-wizard .gaxa-card-desc {
    font-size: 0.825rem;
    color: #666666;
    display: block;
}

#gaxa-wizard .gaxa-card.selected .gaxa-card-desc {
    color: rgba(255, 255, 255, 0.82);
}

/* Card link (percorso non-cliente) */
#gaxa-wizard .gaxa-card--link {
    text-decoration: none;
    color: inherit;
}

#gaxa-wizard .gaxa-card--link:hover .gaxa-card-label {
    color: #1d915d;
}

/* ============================================================
   Form di contatto
   ============================================================ */

#gaxa-wizard .gaxa-form {
    width: 100%;
    display: grid;
    grid-template-columns: repeat( 12, 1fr );
    gap: 16px 24px;
}

#gaxa-wizard .gaxa-form-field {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#gaxa-wizard .gaxa-form-field--col-6 {
    grid-column: span 6;
}

#gaxa-wizard .gaxa-form-field--col-4 {
    grid-column: span 4;
}

@media ( max-width: 640px ) {
    #gaxa-wizard .gaxa-form-field--col-6,
    #gaxa-wizard .gaxa-form-field--col-4 {
        grid-column: span 12;
    }
}

#gaxa-wizard .gaxa-form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333333;
}

#gaxa-wizard .gaxa-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cccccc;
    border-radius: 6px;
    font-size: 1rem;
    color: #222222;
    background-color: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

#gaxa-wizard .gaxa-input:focus {
    outline: none;
    border-color: #003478;
    box-shadow: 0 0 0 3px rgba( 0, 52, 120, 0.15 );
}

#gaxa-wizard .gaxa-input:user-invalid {
    border-color: #cc0000;
}

#gaxa-wizard .gaxa-textarea {
    resize: vertical;
    min-height: 100px;
}

#gaxa-wizard .gaxa-select {
    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='%23003478' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Checkbox privacy */
#gaxa-wizard .gaxa-form-field--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 8px;
}

#gaxa-wizard .gaxa-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 400;
    color: #444444;
}

#gaxa-wizard .gaxa-checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #00965E;
    cursor: pointer;
}

#gaxa-wizard .gaxa-checkbox-label a {
    color: #003478;
    text-decoration: underline;
}

#gaxa-wizard .gaxa-checkbox-label a:hover {
    color: #1d915d;
}

/* ============================================================
   Bottoni
   ============================================================ */

#gaxa-wizard .gaxa-btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: #003478;
    color: #ffffff;
    border: 2px solid #003478;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s, transform 0.10s;
    margin-top: 8px;
    min-width: 160px;
    text-align: center;
}

#gaxa-wizard .gaxa-btn-primary:hover:not( :disabled ) {
    background-color: #1d915d;
    border-color: #1d915d;
}

#gaxa-wizard .gaxa-btn-primary:focus {
    outline: 3px solid #00965E;
    outline-offset: 3px;
}

#gaxa-wizard .gaxa-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#gaxa-wizard .gaxa-btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    background-color: transparent;
    color: #003478;
    border: 2px solid #003478;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    margin-top: 8px;
    text-align: center;
}

#gaxa-wizard .gaxa-btn-secondary:hover {
    background-color: #e0eeef;
    color: #1d915d;
    border-color: #1d915d;
}

#gaxa-wizard .gaxa-btn-secondary:focus {
    outline: 3px solid #003478;
    outline-offset: 3px;
}

#gaxa-wizard .gaxa-back-btn {
    margin-top: 16px;
}

/* ============================================================
   Spinner
   ============================================================ */

#gaxa-wizard .gaxa-spinner {
    display: block;
    width: 40px;
    height: 40px;
    margin: 24px auto;
    border: 4px solid #e0eeef;
    border-top-color: #00965E;
    border-radius: 50%;
    animation: gaxa-spin 0.7s linear infinite;
}

@keyframes gaxa-spin {
    to { transform: rotate( 360deg ); }
}

#gaxa-wizard .gaxa-btn-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba( 255, 255, 255, 0.4 );
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: gaxa-spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* ============================================================
   Messaggi errore e successo
   ============================================================ */

#gaxa-wizard .gaxa-error {
    padding: 12px 16px;
    background-color: #fff0f0;
    border: 1.5px solid #cc0000;
    border-radius: 6px;
    color: #990000;
    font-size: 0.9rem;
    margin: 8px 0;
}

#gaxa-wizard .gaxa-form-error {
    display: none;
    margin-top: 12px;
}

#gaxa-wizard .gaxa-success {
    padding: 20px 24px;
    background-color: #e0eeef;
    border: 2px solid #00965E;
    border-radius: 10px;
    color: #1d4a2e;
}

/* ============================================================
   Step conferma
   ============================================================ */

#gaxa-wizard .gaxa-confirm-box {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

#gaxa-wizard .gaxa-confirm-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d915d;
    margin: 0 0 12px;
}

#gaxa-wizard .gaxa-confirm-msg {
    font-size: 1.05rem;
    color: #333333;
    margin: 0 0 8px;
}

#gaxa-wizard .gaxa-confirm-ref {
    font-size: 0.95rem;
    font-weight: 600;
    color: #003478;
    margin: 0 0 20px;
}

/* ============================================================
   Allegato — drop zone personalizzata
   ============================================================ */

#gaxa-wizard .gaxa-file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

#gaxa-wizard .gaxa-file-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 16px;
    border: 2px dashed #cccccc;
    border-radius: 10px;
    background-color: #fafafa;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background-color 0.15s;
    position: relative;
}

#gaxa-wizard .gaxa-file-dropzone:hover,
#gaxa-wizard .gaxa-file-dropzone--over {
    border-color: #00965E;
    background-color: #f0faf5;
}

#gaxa-wizard .gaxa-file-dropzone--has-file {
    border-color: #00965E;
    background-color: #f0faf5;
}

#gaxa-wizard .gaxa-file-dropzone__icon {
    color: #999999;
    display: flex;
    transition: color 0.15s;
}

#gaxa-wizard .gaxa-file-dropzone:hover .gaxa-file-dropzone__icon,
#gaxa-wizard .gaxa-file-dropzone--has-file .gaxa-file-dropzone__icon {
    color: #00965E;
}

#gaxa-wizard .gaxa-file-dropzone__text {
    font-size: 0.9rem;
    color: #555555;
}

#gaxa-wizard .gaxa-file-dropzone__btn {
    color: #003478;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

#gaxa-wizard .gaxa-file-dropzone__hint {
    font-size: 0.78rem;
    color: #999999;
}

#gaxa-wizard .gaxa-file-dropzone__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1d915d;
    word-break: break-all;
}

/* ============================================================
   Lista file allegati
   ============================================================ */

#gaxa-wizard .gaxa-file-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#gaxa-wizard .gaxa-file-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background-color: #f0faf5;
    border: 1.5px solid #00965E;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #1d4a2e;
    transition: background-color 0.15s;
}

#gaxa-wizard .gaxa-file-list__item::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-color: #00965E;
    border-radius: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px 13px;
}

#gaxa-wizard .gaxa-file-list__name {
    flex: 1;
    font-weight: 500;
    color: #1d4a2e;
    word-break: break-all;
    min-width: 0;
}

#gaxa-wizard .gaxa-file-list__remove {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    background-color: transparent;
    border: 1.5px solid #cc3333;
    border-radius: 50%;
    color: #cc3333;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

#gaxa-wizard .gaxa-file-list__remove:hover {
    background-color: #cc3333;
    color: #ffffff;
}
