/**
 * CDB Address Safety — front.css
 * Stili per tutti gli elementi front-end del modulo
 *
 * @author  Casa della Bibbia
 * @version 2.0.0
 */

/* =========================================================
   FORCE ADDRESS PAGE
   ========================================================= */

.cdb-force-address {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 0;
}

.cdb-progress {
    background: #e9ecef;
    border-radius: 4px;
    height: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.cdb-progress-bar {
    background: #2E75B6;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.cdb-progress-text {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.cdb-info-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-left: 4px solid #2E75B6;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.cdb-info-box h2 {
    font-size: 20px;
    color: #1F3864;
    margin-bottom: 10px;
}

.cdb-address-status {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cdb-status-item {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.cdb-status-item.completed {
    background: #d4edda;
    color: #155724;
}

.cdb-status-item.pending {
    background: #fff3cd;
    color: #856404;
}

.cdb-action-box {
    text-align: center;
    padding: 25px;
}

.cdb-btn-main {
    display: inline-block;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 15px;
}

.cdb-help-text {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

/* =========================================================
   ALERTS
   ========================================================= */

.cdb-alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.cdb-alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.cdb-alert-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.cdb-alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* =========================================================
   PRE-REGISTER PLP
   ========================================================= */

.cdb-pre-register-plp {
    max-width: 650px;
    margin: 0 auto;
}

.cdb-info-header {
    text-align: center;
    margin-bottom: 30px;
}

.cdb-info-header h1 {
    color: #1F3864;
}

.cdb-subtitle {
    color: #666;
    font-size: 16px;
}

.cdb-referral-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
}

.cdb-referral-box h3 {
    color: #1F3864;
    margin-bottom: 12px;
}

.cdb-note {
    color: #666;
    font-style: italic;
    font-size: 14px;
    margin-top: 8px;
}

.cdb-form-group {
    margin-bottom: 18px;
}

.cdb-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.cdb-field-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    display: block;
}

.cdb-form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cdb-skip-link {
    font-size: 14px;
    color: #666;
    text-decoration: underline;
}

/* =========================================================
   REGISTER RETAILER FORM
   ========================================================= */

.cdb-register-retailer {
    max-width: 750px;
    margin: 0 auto;
}

.cdb-register-header {
    margin-bottom: 25px;
}

.cdb-note-approval {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    color: #0c5460;
    margin-top: 10px;
}

.cdb-form-section {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.cdb-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1F3864;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

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

@media (max-width: 600px) {
    .cdb-form-row {
        grid-template-columns: 1fr;
    }
}

.cdb-required label::after {
    content: ' *';
    color: #dc3545;
}

.cdb-hint {
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

.cdb-sdi-note {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.cdb-gdpr-section {
    border-color: #b8daff;
    background: #f0f7ff;
}

.cdb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.cdb-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.cdb-privacy-link {
    display: block;
    font-size: 13px;
    margin-top: 8px;
    margin-left: 25px;
}

.cdb-form-submit {
    text-align: center;
    padding: 20px 0;
}

.cdb-submit-note {
    font-size: 13px;
    color: #666;
    margin-top: 10px;
}

.cdb-errors-box {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    color: #721c24;
}

.cdb-errors-box ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

/* =========================================================
   CONFERMA REGISTRAZIONE
   ========================================================= */

.cdb-confirm-box {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.cdb-confirm-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.cdb-confirm-box h2 {
    color: #155724;
    margin-bottom: 15px;
}

/* =========================================================
   PULSANTE ASSISTENZA
   ========================================================= */

#cdb-assist-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 18px;
    background: #f0f4ff;
    border: 1px solid #2E75B6;
    border-radius: 4px;
    color: #2E75B6;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

#cdb-assist-btn:hover {
    background: #2E75B6;
    color: #fff;
}

/* =========================================================
   SPINNER EMAIL
   ========================================================= */

#cdb-email-spinner {
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* =========================================================
   MESSAGGIO INFORMATIVO SPEDIZIONE PLP
   Classe semanticamente neutra — non intercettabile come errore
   ========================================================= */

.cdb-address-help-text {
    background: #e8f4fd;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
}
