/* Oculta a barra de cookies (Cookie Law Info) nas páginas que embutem o formulário em iframe */
#cookie-law-info-bar,
#cookie-law-info-again {
    display: none !important;
}

.ndf-wrapper {
    --ndf-primary: #833178;
    --ndf-primary-dark: #6b2862;
    --ndf-button: #AC79BA;
    --ndf-button-hover: #9665a4;
    --ndf-text: #833178;
    --ndf-border: #e7d4e4;
    --ndf-border-strong: #c9a8c5;
    --ndf-bg-input: #fdf8fc;
    --ndf-error: #c0392b;
    --ndf-success: #27ae60;

    max-width: 880px;
    margin: 0 auto;
    padding: 16px;
    color: var(--ndf-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.ndf-wrapper *,
.ndf-wrapper *::before,
.ndf-wrapper *::after {
    box-sizing: border-box;
}

.ndf-form {
    display: block;
}

.ndf-wrapper h2.ndf-section-title {
    color: var(--ndf-primary) !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    margin: 0 0 26px !important;
    padding: 0 !important;
}

.ndf-wrapper .ndf-section-title + .ndf-row {
    margin-top: 0;
}

.ndf-wrapper h2.ndf-section-title.ndf-section-title-divider {
    border-top: 1px solid var(--ndf-border) !important;
    margin-top: 36px !important;
    padding-top: 28px !important;
}

.ndf-wrapper .ndf-section-emph {
    font-weight: 700 !important;
}

.ndf-wrapper h2.ndf-section-title strong {
    font-weight: 700;
}

.ndf-wrapper .ndf-hint .ndf-hint-important {
    color: #d63b3b;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 4px;
}

.ndf-row {
    display: grid;
    gap: 28px;
    margin-bottom: 24px;
}

.ndf-row-2 {
    grid-template-columns: 1fr 1fr;
}

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

.ndf-field {
    display: flex;
    flex-direction: column;
}

.ndf-field label,
.ndf-field > label {
    color: var(--ndf-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ndf-hint {
    color: var(--ndf-primary);
    font-size: 10px;
    font-weight: 400;
    margin: 0 0 6px;
    opacity: 0.85;
}

.ndf-field input[type="text"],
.ndf-field input[type="email"],
.ndf-field input[type="tel"],
.ndf-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ndf-border-strong);
    border-radius: 999px;
    background: var(--ndf-bg-input);
    color: var(--ndf-primary);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
    -webkit-appearance: none;
    appearance: none;
}

.ndf-field input::placeholder {
    color: rgba(131, 49, 120, 0.5);
}

.ndf-field input:focus,
.ndf-field select:focus {
    border-color: var(--ndf-primary);
    box-shadow: 0 0 0 3px rgba(131, 49, 120, 0.12);
}

.ndf-field input[readonly],
.ndf-field select:disabled {
    background-color: #f5ecf3;
    color: rgba(131, 49, 120, 0.7);
    cursor: not-allowed;
}

.ndf-field input.ndf-invalid,
.ndf-field select.ndf-invalid {
    border-color: var(--ndf-error);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.ndf-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23833178' d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.ndf-radio-group {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 6px 4px;
}

.ndf-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ndf-primary);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 500;
}

.ndf-radio input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--ndf-border-strong);
    border-radius: 50%;
    margin: 0;
    position: relative;
    cursor: pointer;
    background: #fff;
}

.ndf-radio input[type="radio"]:checked {
    border-color: var(--ndf-primary);
}

.ndf-radio input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ndf-primary);
}

.ndf-checkboxes {
    margin: 24px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ndf-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--ndf-primary);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.ndf-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--ndf-border-strong);
    border-radius: 50%;
    background: #fff;
    margin: 1px 0 0;
    cursor: pointer;
    position: relative;
}

.ndf-check input[type="checkbox"]:checked {
    border-color: var(--ndf-primary);
    background: var(--ndf-primary);
}

.ndf-check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ndf-check a {
    color: var(--ndf-primary);
    text-decoration: underline;
    font-weight: 600;
}

.ndf-wrapper .ndf-check[hidden] {
    display: none !important;
}

.ndf-check.ndf-check-with-logo {
    align-items: center;
}

.ndf-check.ndf-check-with-logo .ndf-check-text {
    flex: 1;
}

.ndf-check.ndf-check-with-logo .ndf-check-logos {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-left: 16px;
}

.ndf-check.ndf-check-with-logo .ndf-check-logo {
    width: 145px;
    height: auto;
    display: block;
}

.ndf-check.ndf-check-with-logo .ndf-check-logo:not(.ndf-check-logo-bradesco) {
    margin-top: 10px;
}

@media (max-width: 480px) {
    .ndf-check.ndf-check-with-logo .ndf-check-logos {
        gap: 10px;
    }
    .ndf-check.ndf-check-with-logo .ndf-check-logo {
        width: 90px;
    }
}

.ndf-check.ndf-invalid {
    color: var(--ndf-error);
}

.ndf-check.ndf-invalid input[type="checkbox"] {
    border-color: var(--ndf-error);
}

.ndf-feedback {
    min-height: 22px;
    font-size: 13px;
    margin: 6px 0 12px;
    text-align: center;
}

.ndf-feedback.ndf-feedback-error {
    color: var(--ndf-error);
}

.ndf-feedback.ndf-feedback-success {
    color: var(--ndf-success);
}

.ndf-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--ndf-button);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s, transform .05s;
}

.ndf-submit:hover:not(:disabled) {
    background: var(--ndf-button-hover);
}

.ndf-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.ndf-submit:disabled {
    opacity: 0.7;
    cursor: progress;
}

.ndf-success-box {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--ndf-border);
    border-radius: 16px;
    color: var(--ndf-primary);
    background: var(--ndf-bg-input);
}

.ndf-success-box h3 {
    margin: 0 0 8px;
    color: var(--ndf-primary);
}

.ndf-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.ndf-modal.is-open {
    display: block;
}

.ndf-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ndf-modal-card {
    position: relative;
    max-width: 460px;
    margin: 10vh auto 0;
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 22px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
    color: var(--ndf-primary);
}

.ndf-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    color: var(--ndf-primary);
    cursor: pointer;
}

.ndf-modal-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ndf-primary);
}

.ndf-modal-body {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
}

.ndf-modal-actions {
    display: flex;
    justify-content: center;
}

.ndf-modal-ok {
    background: var(--ndf-button);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s;
}

.ndf-modal-ok:hover {
    background: var(--ndf-button-hover);
}
