.nova-wa-modal[hidden] {
    display: none !important;
}

.nova-wa-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: inherit;
}

.nova-wa-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 34, 42, 0.7);
    backdrop-filter: blur(3px);
}

.nova-wa-dialog {
    position: relative;
    width: min(100%, 480px);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 32px;
    border-radius: 18px;
    background: #fff;
    color: #172d36;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.nova-wa-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #3cc7c7;
    color: #173440;
    font-weight: 800;
    font-size: 21px;
}

.nova-wa-dialog h2 {
    margin: 0 42px 8px 0;
    color: #173440;
    font-size: clamp(24px, 4vw, 30px);
    line-height: 1.15;
}

.nova-wa-intro {
    margin: 0 0 24px;
    color: #5d6a70;
    font-size: 16px;
    line-height: 1.5;
}

.nova-wa-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #506269;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.nova-wa-form {
    display: grid;
    gap: 16px;
}

.nova-wa-form [data-profile-field][hidden] {
    display: none !important;
}

.nova-wa-form > label:not(.nova-wa-consent):not(.nova-wa-honeypot) {
    display: grid;
    gap: 7px;
    color: #243d46;
    font-weight: 600;
    font-size: 14px;
}

.nova-wa-form input[type="text"],
.nova-wa-form input[type="tel"],
.nova-wa-form select {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #b9c4c8;
    border-radius: 9px;
    background: #fff;
    color: #172d36;
    font: inherit;
    font-weight: 400;
}

.nova-wa-form input:focus,
.nova-wa-form select:focus {
    outline: 3px solid rgba(60, 199, 199, 0.22);
    border-color: #209d9d;
}

.nova-wa-consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    color: #4f5f65;
    font-size: 13px;
    line-height: 1.45;
}

.nova-wa-consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #209d9d;
}

.nova-wa-consent a {
    color: #177f86;
    text-decoration: underline;
}

.nova-wa-submit {
    min-height: 50px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    background: #36bfaa;
    color: #11363a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.nova-wa-submit:hover {
    background: #43ceb8;
    transform: translateY(-1px);
}

.nova-wa-submit:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.nova-wa-message {
    min-height: 20px;
    margin: -2px 0 0;
    color: #177f5c;
    font-size: 13px;
}

.nova-wa-message.is-error {
    color: #b42318;
}

.nova-wa-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

body.nova-wa-modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .nova-wa-modal {
        align-items: end;
        padding: 0;
    }

    .nova-wa-dialog {
        width: 100%;
        max-height: 92vh;
        box-sizing: border-box;
        padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
        border-radius: 18px 18px 0 0;
    }
}

