/* ----------------------------------------------------
   FORM COUPON – VERSIONE PREMIUM 3D VERDE
---------------------------------------------------- */

.coupon-wrapper {
    padding: 20px 0;
}

.coupon-form .form-area {
    border: 3px solid #0a7a2f;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 80, 20, 0.35);
    background: #ffffff;
    padding: 45px;
    width: min(480px, 92vw);
    margin: 0 auto;
    position: relative;
    /* necessario per la X */
}

.coupon-form .form-control {
    border: 2px solid #0a7a2f !important;
    box-shadow:
        inset 0 0 6px rgba(0, 80, 20, 0.25),
        0 0 10px rgba(0, 80, 20, 0.25);
}

.coupon-form .form-control:focus {
    border-color: #0cc44a !important;
    box-shadow:
        0 0 0 3px rgba(0, 200, 80, 0.25),
        inset 0 0 6px rgba(0, 80, 20, 0.25);
}

.section-title h2 {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--rosa-scuro);
    text-align: center;
    margin-bottom: 45px;
    letter-spacing: 0.5px;
}

/* Pulsanti */
.coupon-form .btn-primary {
    background: #0a7a2f !important;
    border: none;
    padding: 14px 32px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 80, 20, 0.35);
    transition: transform 0.2s ease;
}

.coupon-form .btn-primary:hover {
    background: #0cc44a !important;
    transform: translateY(-2px);
}

.coupon-form .btn-secondary {
    padding: 14px 32px;
    border-radius: 8px;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background-color: #0a7a2f;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 80, 20, 0.3);
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #0cc44a;
    transform: scale(1.1);
}

/* Messaggi di errore */
.privacy-error {
    margin-top: 10px;
    color: #d93025;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ----------------------------------------------------
   CHECKBOX PRIVACY – VERSIONE VERDE PREMIUM
---------------------------------------------------- */

.privacy-row input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 2px solid #7b0046;
    border-radius: 6px;
    background-color: #fff;
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover/focus */
.privacy-row input[type="checkbox"]:hover {
    box-shadow: 0 0 6px rgba(10, 122, 47, 0.3);
    transform: scale(1.05);
}

.privacy-row input[type="checkbox"]:focus {
    box-shadow: 0 0 0 3px rgba(12, 196, 74, 0.25);
}

/* Stato selezionato */
.privacy-row input[type="checkbox"]:checked {
    background-color: #0cc44a;
    border-color: #0cc44a;
}

/* Spunta centrata */
.privacy-row input[type="checkbox"]::after {
    content: '';
    position: absolute;
    display: none;
}

.privacy-row input[type="checkbox"]:checked::after {
    display: block;
    width: 6px;
    height: 12px;
    top: 1px;
    left: 6px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ----------------------------------------------------
   TESTI PRIVACY
---------------------------------------------------- */

.required {
    color: #c40000;
}

.privacy-title {
    font-weight: 600;
    margin-top: 0.8em;
}

.privacy-required {
    color: #c40000;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.privacy-required i {
    font-size: 1.1em;
}

.privacy-info {
    margin-top: 0.4em;
    line-height: 1.5;
}

.privacy-link {
    color: #c40000;
    text-decoration: underline;
    font-weight: 600;
}

.privacy-link:hover {
    color: #a00000;
}

.privacy-row {
    margin-top: 0.8em;
}

.privacy-label {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.6;
    font-weight: 500;
    color: #222;
    text-align: left;
}