
/* =========================================
   NBGAMES NEWSLETTER PREFERENCES
========================================= */

.nbg-newsletter-form {
    width: 100%;
    max-width: 100%;
    margin: 50px auto;
    padding: 42px;
    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.93);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;

    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #252441;
    font-family: var(--font-body);
}

/* Header */

.nbg-newsletter-form .nbg-newsletter-header {
    text-align: center;
    margin-bottom: 34px;
}

.nbg-newsletter-form .nbg-newsletter-header h2 {
    margin: 0 0 14px;
    color: #252441;
    font-size: 34px;
    font-weight: 700;
}

.nbg-newsletter-form .nbg-newsletter-header p {
    max-width: 650px;
    margin: 0 auto;
    color: #55536C;
    font-size: 16px;
    line-height: 1.7;
}

/* Name and email */

.nbg-newsletter-form .nbg-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 34px;
}

.nbg-newsletter-form .nbg-form-field {
    min-width: 0;
}

.nbg-newsletter-form .nbg-form-field > label {
    display: block;
    margin-bottom: 9px;
    color: #252441;
    font-size: 15px;
    font-weight: 700;
}

.nbg-newsletter-form .nbg-required {
    color: #8B4EAA;
}

.nbg-newsletter-form .nbg-form-field input {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 15px;
    box-sizing: border-box;

    background: #FFFFFF;
    color: #252441;

    border: 1px solid #CECBDC;
    border-radius: 8px;

    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s;
}

.nbg-newsletter-form .nbg-form-field input:focus {
    outline: none;
    border-color: #837DBB;
    box-shadow: 0 0 0 3px rgba(131, 125, 187, .18);
}

.nbg-newsletter-form .nbg-form-field input::placeholder {
    color: #92909F;
}

/* Interests */

.nbg-newsletter-form .nbg-form-interests {
    padding-top: 26px;
    border-top: 1px solid #DCD9E8;
    margin-bottom: 25px;
}

.nbg-newsletter-form .nbg-form-interests h3 {
    margin: 0 0 8px;
    color: #252441;
    font-size: 23px;
}

.nbg-newsletter-form .nbg-form-interests > p {
    margin: 0 0 20px;
    color: #66647A;
    font-size: 15px;
}

.nbg-newsletter-form .nbg-interest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.nbg-newsletter-form .nbg-interest-option {
    min-width: 0;
    background: #F5F3FA;
    border: 1px solid #DCD9E8;
    border-radius: 10px;
    transition: background .2s, border-color .2s;
}

.nbg-newsletter-form .nbg-interest-option:hover {
    background: #EBE7F6;
    border-color: #837DBB;
}

/* Contact Form 7 checkbox structure */

.nbg-newsletter-form .nbg-interest-option .wpcf7-form-control,
.nbg-newsletter-form .nbg-interest-option .wpcf7-list-item {
    display: block;
    margin: 0;
}

.nbg-newsletter-form .nbg-interest-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    cursor: pointer;
    color: #252441;
    font-size: 16px;
    font-weight: 600;
}

.nbg-newsletter-form .nbg-interest-option .wpcf7-list-item-label {
    color: #252441;
}

.nbg-newsletter-form input[type="checkbox"] {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    margin: 0;
    accent-color: #837DBB;
    cursor: pointer;
}

.nbg-newsletter-form .nbg-interest-note {
    margin: 18px 0 0;
    color: #66647A;
    font-size: 14px;
    line-height: 1.6;
}

/* Consent */

.nbg-newsletter-form .nbg-form-consent {
    margin: 25px 0;
    padding: 18px;
    background: #F5F3FA;
    border-radius: 10px;
}

.nbg-newsletter-form .nbg-form-consent .wpcf7-list-item {
    margin: 0;
}

.nbg-newsletter-form .nbg-form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: #444158;
    font-size: 14px;
    line-height: 1.6;
}

/* Submit button */

.nbg-newsletter-form .nbg-form-submit input[type="submit"] {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;

    background: var(--color-secondary);
    color: #FFFFFF;

    border: none;
    border-radius: 8px;

    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;

    cursor: pointer;
    transition: background .2s, transform .2s;
}

.nbg-newsletter-form .nbg-form-submit input[type="submit"]:hover {
    background: var(--color-newsletter-button-hover);
    transform: translateY(-2px);
}

/* Footer note */

.nbg-newsletter-form .nbg-form-note {
    margin: 20px 0 0;
    text-align: center;
    color: #66647A;
    font-size: 14px;
    line-height: 1.6;
}

/* CF7 validation */

.nbg-newsletter-form .wpcf7-not-valid-tip {
    color: #B42332;
    font-size: 13px;
    margin-top: 6px;
}

.nbg-newsletter-form .wpcf7-response-output {
    color: #252441;
    border-radius: 8px;
}

/* Responsive */

@media (max-width: 650px) {

    .nbg-newsletter-form {
        padding: 26px 20px;
        margin: 30px auto;
    }

    .nbg-newsletter-form .nbg-newsletter-header h2 {
        font-size: 28px;
    }

    .nbg-newsletter-form .nbg-form-row,
    .nbg-newsletter-form .nbg-interest-grid {
        grid-template-columns: 1fr;
    }

    .nbg-newsletter-form .nbg-interest-option label {
        padding: 15px;
    }
}

/* Contact Form 7 confirmation and error messages */
.wpcf7 .wpcf7-response-output {
    color: #FFFFFF !important;
    font-size: 16px;
    line-height: 1.6;
    padding: 12px 16px;
    border-radius: 8px;
}
