.ha-correios-shortcode-form {
    --ha-recovery-blue: #4398cf;
    --ha-recovery-blue-dark: #005daa;
    --ha-recovery-navy: #02043b;
    --ha-recovery-text: #1f2933;
    --ha-recovery-muted: #556272;
    background: #fff;
    border: 1px solid #d9dce1;
    border-top: 8px solid var(--ha-recovery-blue);
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    color: var(--ha-recovery-text);
    display: grid;
    gap: 18px;
    margin: 0 auto;
    max-width: 1140px;
    padding: 28px;
    width: 100%;
}

.ha-correios-shortcode-description {
    color: var(--ha-recovery-muted);
    margin: 0;
}

.ha-correios-shortcode-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.ha-correios-shortcode-form legend {
    color: var(--ha-recovery-navy);
    font-weight: 700;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.ha-correios-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ha-correios-field {
    display: grid;
    gap: 6px;
}

.ha-correios-field-full {
    grid-column: 1 / -1;
}

.ha-correios-field span,
.ha-correios-terms span {
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ha-correios-field em {
    color: #b42318;
    font-style: normal;
}

.ha-correios-cep-status {
    color: var(--ha-recovery-muted);
    font-size: 13px;
    line-height: 1.3;
    min-height: 17px;
}

.ha-correios-cep-status[data-state="success"] {
    color: #067647;
}

.ha-correios-cep-status[data-state="error"] {
    color: #b42318;
}

.ha-correios-shortcode-form input,
.ha-correios-shortcode-form select,
.ha-correios-shortcode-form textarea {
    border: 1px solid #b8c0cc;
    border-radius: 6px;
    box-sizing: border-box;
    font: inherit;
    font-size: 16px;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.ha-correios-shortcode-form textarea {
    min-height: 88px;
    resize: vertical;
}

.ha-correios-terms {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.ha-correios-terms input {
    flex: 0 0 auto;
    margin-top: 4px;
    min-height: 0;
    width: auto;
}

.ha-correios-captcha {
    max-width: 280px;
    width: 100%;
}

.ha-correios-submit,
.ha-correios-download {
    align-items: center;
    background: var(--ha-recovery-blue-dark);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    text-decoration: none;
    width: fit-content;
}

.ha-correios-submit:hover,
.ha-correios-download:hover {
    background: #004276;
    color: #fff;
}

.ha-correios-notice {
    border-left: 4px solid;
    padding: 10px 12px;
}

.ha-correios-notice p {
    margin: 0;
}

.ha-correios-notice p + p {
    margin-top: 10px;
}

.ha-correios-notice-success {
    background: #ecfdf3;
    border-color: #12b76a;
}

.ha-correios-notice-error {
    background: #fff4ed;
    border-color: #f04438;
}

.ha-correios-hp {
    left: -9999px;
    position: absolute;
}

@media (max-width: 640px) {
    .ha-correios-shortcode-form {
        border-radius: 6px;
        gap: 16px;
        padding: 16px;
    }

    .ha-correios-form-grid {
        grid-template-columns: 1fr;
    }

    .ha-correios-submit,
    .ha-correios-download {
        width: 100%;
    }

    .ha-correios-captcha {
        max-width: none;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .ha-correios-shortcode-form {
        padding: 22px;
    }

    .ha-correios-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ha-correios-form-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
