/* ============================================================
   Form di registrazione Fidelity Card
   ============================================================ */

.fcp-reg-wrap {
    max-width: 480px;
    margin: 0 auto;
}

.fcp-reg-row {
    display: flex;
    gap: 16px;
}

.fcp-reg-row .fcp-reg-field {
    flex: 1;
    min-width: 0;
}

.fcp-reg-field {
    margin-bottom: 18px;
}

.fcp-reg-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}

.fcp-reg-required {
    color: #c00;
}

.fcp-reg-hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: #888;
}

.fcp-reg-field input[type="text"],
.fcp-reg-field input[type="email"],
.fcp-reg-field input[type="tel"],
.fcp-reg-field input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: #fff;
    color: #222;
}

.fcp-reg-field input:focus {
    outline: none;
    border-color: #4a9;
    box-shadow: 0 0 0 2px rgba(68, 170, 102, 0.15);
}

.fcp-reg-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.fcp-reg-password-wrap input {
    flex: 1;
    padding-right: 42px !important;
}

.fcp-reg-toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    color: #777;
    line-height: 1;
    transition: color 0.15s;
}

.fcp-reg-toggle-pw:hover {
    color: #333;
}

.fcp-reg-checkbox {
    margin-bottom: 14px;
}

.fcp-reg-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.4;
}

.fcp-reg-checkbox input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4a9;
}

.fcp-reg-checkbox a {
    color: #2a7;
}

.fcp-reg-error {
    background: #fff5f5;
    border: 1px solid #fca5a5;
    color: #c00;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 14px;
}

.fcp-reg-submit {
    display: block;
    width: 100%;
    background: #3a8a5c;
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}

.fcp-reg-submit:hover {
    background: #2d7049;
}

.fcp-reg-submit:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.fcp-reg-already-logged {
    color: #666;
    font-style: italic;
}

/* ── Overlay ────────────────────────────────────────────────── */

.fcp-reg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* ── Modal ──────────────────────────────────────────────────── */

.fcp-reg-modal {
    background: #fff;
    border-radius: 10px;
    padding: 36px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    box-sizing: border-box;
}

.fcp-reg-modal h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #1a1a1a;
}

.fcp-reg-modal > div > p {
    color: #555;
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
}

.fcp-reg-confirm-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
    margin-bottom: 6px;
}

.fcp-reg-confirm-email-box {
    background: #f0faf4;
    border: 2px solid #4a9;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    word-break: break-all;
}

.fcp-reg-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.fcp-reg-modal-actions .fcp-reg-submit {
    flex: 1;
}

.fcp-reg-btn-secondary {
    background: none;
    border: 1px solid #ccc;
    color: #555;
    padding: 13px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}

.fcp-reg-btn-secondary:hover {
    background: #f5f5f5;
}

/* ── Successo ───────────────────────────────────────────────── */

.fcp-reg-success-icon {
    width: 64px;
    height: 64px;
    background: #3a8a5c;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    line-height: 64px;
    text-align: center;
    margin: 0 auto 20px;
}

#fcp-reg-success-step h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

#fcp-reg-success-step p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 480px) {
    .fcp-reg-row {
        flex-direction: column;
        gap: 0;
    }

    .fcp-reg-modal {
        padding: 24px 20px;
    }

    .fcp-reg-modal-actions {
        flex-direction: column-reverse;
    }

    .fcp-reg-btn-secondary {
        text-align: center;
    }
}

/* ── Login form ─────────────────────────────────────────────── */

.fcp-login-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    text-align: center;
}

.fcp-login-links a {
    font-size: 13px;
    color: #555;
    text-decoration: underline;
}

.fcp-login-links a:hover {
    color: #222;
}
