/* =========================================================
   ABNT - FORMULÁRIO INCOMPANY
   Visual institucional / responsivo
========================================================= */

.abnt-ic-wrapper,
.abnt-ic-wrapper * {
    box-sizing: border-box;
}

.abnt-ic-wrapper {
    width: 100%;
    padding: 32px 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: #26344f;
    font-size: 15px;
    line-height: 1.5;
}

/* CARD
========================================================= */

.abnt-ic-card {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(30, 52, 92, 0.07);
    overflow: hidden;
}

.abnt-ic-body {
    padding: 42px 48px 46px;
}


/* CABEÇALHO
========================================================= */

.abnt-ic-title {
    margin: 0;
    text-align: center;
    color: #39588e;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.abnt-ic-required-note {
    margin: 20px 0 28px;
    text-align: right;
    font-size: 12px;
    color: #747d8d;
}

.abnt-ic-asterisk {
    color: #c9344a;
    font-weight: 700;
}


/* CAMPOS
========================================================= */

.abnt-ic-field {
    margin-bottom: 20px;
}

.abnt-ic-label {
    display: block;
    margin: 0 0 7px;
    color: #26344f;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

.abnt-ic-input,
.abnt-ic-select,
.abnt-ic-textarea {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #b8c0cc;
    border-radius: 6px;
    background: #ffffff;
    color: #26344f;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/* altura padrão dos campos */

.abnt-ic-input,
.abnt-ic-select {
    height: 46px;
}


/* placeholder */

.abnt-ic-input::placeholder,
.abnt-ic-textarea::placeholder {
    color: #949ba8;
    opacity: 1;
}


/* textarea */

.abnt-ic-textarea {
    display: block;
    min-height: 145px;
    padding: 13px 14px;
    resize: vertical;
}


/* foco */

.abnt-ic-input:focus,
.abnt-ic-select:focus,
.abnt-ic-textarea:focus {
    border-color: #3d649e;
    box-shadow: 0 0 0 3px rgba(61, 100, 158, 0.12);
}


/* disabled */

.abnt-ic-input:disabled,
.abnt-ic-select:disabled,
.abnt-ic-textarea:disabled {
    background: #f5f6f8;
    color: #9098a5;
    cursor: not-allowed;
}


/* HELP TEXT
========================================================= */

.abnt-ic-help {
    display: block;
    margin-top: 6px;
    color: #7c8491;
    font-size: 12px;
    line-height: 1.4;
}


/* LINHAS / COLUNAS
========================================================= */

.abnt-ic-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
    margin-bottom: 20px;
}

.abnt-ic-row .abnt-ic-field {
    margin-bottom: 0;
}

.abnt-ic-col-ddi {
    width: 100px;
    flex: 0 0 100px;
}

.abnt-ic-col-tel {
    flex: 1;
    min-width: 0;
}

.abnt-ic-col-half {
    width: calc(50% - 7px);
}


/* FORMATO / RADIOS
========================================================= */

.abnt-ic-radios {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.abnt-ic-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    min-height: 40px;
    padding: 8px 14px;

    border: 1px solid #d8dde5;
    border-radius: 6px;
    background: #f8f9fb;

    color: #35445e;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.abnt-ic-radio:hover {
    background: #f1f4f8;
    border-color: #b7c4d7;
}

.abnt-ic-radio input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #395f97;
}


/* LOCALIZAÇÃO
========================================================= */

.abnt-ic-localizacao {
    margin-bottom: 0;
}


/* CHECKBOX E PRIVACIDADE
========================================================= */

.abnt-ic-check {
    margin-top: 4px;
    margin-bottom: 24px;
}

.abnt-ic-check > label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #5b6472;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.abnt-ic-check input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin: 2px 0 0;
    accent-color: #395f97;
}

.abnt-ic-check a {
    color: #395f97;
    font-weight: 600;
    text-decoration: none;
}

.abnt-ic-check a:hover {
    text-decoration: underline;
}


/* BOTÃO
========================================================= */

.abnt-ic-submit-wrap {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 8px;
}

.abnt-ic-btn {
    appearance: none;
    min-width: 130px;
    height: 46px;

    padding: 0 24px;

    border: 0;
    border-radius: 5px;

    background: #39588e;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.3px;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.abnt-ic-btn:hover {
    background: #2d4979;
    box-shadow: 0 5px 12px rgba(45, 73, 121, 0.18);
}

.abnt-ic-btn:active {
    transform: translateY(1px);
}

.abnt-ic-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}


/* SPINNER
========================================================= */

.abnt-ic-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;

    margin-right: 7px;

    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #ffffff;
    border-radius: 50%;

    vertical-align: -2px;

    animation: abnt-ic-spin 0.8s linear infinite;
}

@keyframes abnt-ic-spin {
    to {
        transform: rotate(360deg);
    }
}


/* ALERTA DE SUCESSO
========================================================= */

.abnt-ic-alert {
    margin: 22px 0;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.abnt-ic-alert-success {
    border: 1px solid #b8dcc6;
    background: #f0f9f3;
    color: #27613c;
}


/* REMOVE ESTILOS QUE ALGUNS TEMAS DO WORDPRESS
   APLICAM NOS CAMPOS
========================================================= */

.abnt-ic-wrapper input:not([type="checkbox"]):not([type="radio"]),
.abnt-ic-wrapper select,
.abnt-ic-wrapper textarea {
    box-shadow: none;
}

.abnt-ic-wrapper label {
    text-transform: none;
    letter-spacing: normal;
}


/* TABLET
========================================================= */

@media (max-width: 900px) {

    .abnt-ic-wrapper {
        padding: 24px 16px;
    }

    .abnt-ic-body {
        padding: 34px 30px 38px;
    }

    .abnt-ic-title {
        font-size: 23px;
    }

}


/* MOBILE
========================================================= */

@media (max-width: 640px) {

    .abnt-ic-wrapper {
        padding: 12px;
        font-size: 14px;
    }

    .abnt-ic-card {
        border-radius: 8px;
    }

    .abnt-ic-body {
        padding: 26px 18px 30px;
    }

    .abnt-ic-title {
        font-size: 20px;
        line-height: 1.35;
        text-align: left;
    }

    .abnt-ic-required-note {
        margin: 12px 0 24px;
        text-align: left;
    }

    .abnt-ic-field {
        margin-bottom: 18px;
    }

    .abnt-ic-label {
        font-size: 13px;
    }

    .abnt-ic-input,
    .abnt-ic-select {
        height: 46px;
        font-size: 16px;
    }

    .abnt-ic-textarea {
        min-height: 130px;
        font-size: 16px;
    }

    .abnt-ic-row {
        gap: 10px;
    }

    .abnt-ic-col-ddi {
        width: 82px;
        flex-basis: 82px;
    }

    .abnt-ic-col-half {
        width: 100%;
    }

    #abnt-ic-localizacao .abnt-ic-row {
        flex-direction: column;
        align-items: stretch;
    }

    .abnt-ic-radios {
        gap: 8px;
    }

    .abnt-ic-radio {
        flex: 1;
        justify-content: center;
    }

    .abnt-ic-check > label {
        font-size: 12px;
    }

    .abnt-ic-submit-wrap {
        display: block;
    }

    .abnt-ic-btn {
        width: 100%;
        height: 48px;
        font-size: 14px;
    }

}