.gdw-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.gdw-modal--aberto {
    display: flex;
}

.gdw-modal__fundo {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.gdw-modal__caixa {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 26px;
    border-radius: 12px;
    background: #fff;
    color: #222;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.gdw-modal__caixa h2 {
    margin: 0 45px 14px 0;
    font-size: 25px;
    line-height: 1.25;
    color: #222;
}

.gdw-modal__fechar {
    position: absolute;
    top: 13px;
    right: 14px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    font-size: 26px;
    line-height: 38px;
    cursor: pointer;
}

.gdw-modal__grupo {
    margin: 0 0 20px;
    padding: 11px 13px;
    border-left: 4px solid #25d366;
    background: #f4fbf6;
    border-radius: 5px;
    line-height: 1.5;
}

.gdw-campo {
    margin-bottom: 17px;
}

.gdw-campo label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #222;
}

.gdw-campo input[type="email"],
.gdw-campo input[type="text"],
.gdw-campo input[type="file"],
.gdw-campo select,
.gdw-campo textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cfcfcf;
    border-radius: 7px;
    padding: 11px 12px;
    background: #fff;
    color: #222;
    font: inherit;
}

.gdw-campo textarea {
    resize: vertical;
}

.gdw-campo small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
    line-height: 1.45;
}

.gdw-confirmacao {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 5px 0 18px;
    line-height: 1.45;
    cursor: pointer;
}

.gdw-confirmacao input {
    margin-top: 4px;
}

.gdw-enviar {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 7px;
    padding: 13px 18px;
    background: #198f42;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.gdw-enviar:hover {
    background: #137534;
}

.gdw-enviar:disabled {
    opacity: .65;
    cursor: wait;
}

.gdw-mensagem {
    display: none;
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 6px;
    line-height: 1.45;
}

.gdw-mensagem--sucesso,
.gdw-mensagem--erro {
    display: block;
}

.gdw-mensagem--sucesso {
    background: #eaf8ee;
    border: 1px solid #b8e1c3;
    color: #155d2d;
}

.gdw-mensagem--erro {
    background: #fff0f0;
    border: 1px solid #efb9b9;
    color: #8a1f1f;
}

.gdw-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

body.gdw-modal-aberto {
    overflow: hidden;
}

@media (max-width: 600px) {
    .gdw-modal {
        padding: 10px;
        align-items: flex-start;
    }

    .gdw-modal__caixa {
        max-height: calc(100vh - 20px);
        padding: 21px 17px;
        margin-top: 10px;
    }

    .gdw-modal__caixa h2 {
        font-size: 22px;
    }
}


/* Ajustes v1.2 */
.gdw-confirmacao {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 12px 0 20px !important;
    cursor: pointer !important;
    user-select: none;
    font-weight: 600;
}

.gdw-confirmacao input[type="checkbox"] {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    accent-color: #25d366;
    cursor: pointer;
}

.gdw-confirmacao span {
    flex: 1;
    cursor: pointer;
}

.gdw-enviar {
    padding: 15px 20px !important;
    border-radius: 8px !important;
    background: #1c9d47 !important;
    font-size: 17px !important;
    transition: background .2s ease, transform .2s ease;
}

.gdw-enviar:hover {
    background: #17873c !important;
    transform: translateY(-1px);
}
