/* ═══════════════════════════════════════════════
 * SISTEMA COUPON BAR — Form Frontend (Cliente)
 * ═══════════════════════════════════════════════ */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── Wrapper ─── */
.scb-form-wrapper {
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ─── Header ─── */
.scb-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.scb-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.scb-form-subtitle {
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* ─── Form ─── */
.scb-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.scb-form:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* ─── Campi ─── */
.scb-form-field {
    margin-bottom: 18px;
}

.scb-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.scb-form-optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 12px;
}

.scb-form-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.scb-form-input:focus {
    border-color: #28a745;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

.scb-form-input::placeholder {
    color: #94a3b8;
}

/* ─── Checkbox Privacy ─── */
.scb-form-field--checkbox {
    margin-top: 20px;
    margin-bottom: 20px;
}

.scb-form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

.scb-form-checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #28a745;
}

.scb-form-checkbox-label a {
    color: #28a745;
    text-decoration: underline;
}

.scb-form-checkbox-label a:hover {
    color: #1e7e34;
}

/* ─── Bottone Submit ─── */
.scb-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: #ffffff;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(40, 167, 69, 0.3);
    -webkit-appearance: none;
}

.scb-form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.scb-form-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.scb-form-submit__icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.scb-form-submit:hover .scb-form-submit__icon {
    transform: translateX(4px);
}

/* ─── Messaggi ─── */
.scb-form-message {
    padding: 16px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.scb-form-message__icon {
    font-size: 18px;
    flex-shrink: 0;
}

.scb-form-message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.scb-form-message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    .scb-form-wrapper {
        padding: 0 10px;
    }

    .scb-form {
        padding: 20px;
        border-radius: 12px;
    }

    .scb-form-title {
        font-size: 20px;
    }

    .scb-form-input {
        padding: 11px 12px;
        font-size: 16px; /* Previene lo zoom su iOS */
    }
}
