/* =========================================
   DOVELIO - LISTA DE ESPERA
========================================= */

.waitlist-section {
    padding: 105px 0;
    background: #F5F7F2;
    scroll-margin-top: -95px;
}

.waitlist-panel {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 65px;

    padding: 65px;
    overflow: hidden;

    background: #1E3D35;
    border-radius: 28px;
}

/* DECORAÇÃO */

.waitlist-decoration {
    position: absolute;
    z-index: -1;

    width: 600px;
    height: 600px;

    left: -260px;
    bottom: -400px;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.10);

    box-shadow:
        0 0 0 90px rgba(255,255,255,.025),
        0 0 0 190px rgba(255,255,255,.015);
}

/* =========================================
   CONTEÚDO
========================================= */

.waitlist-content {
    position: relative;
    z-index: 1;
}

.waitlist-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 24px;
    color: #BBD3C2;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.waitlist-eyebrow svg {
    width: 17px;
    height: 17px;
    color: #E8CD9C;
}

.waitlist-content h2 {
    margin: 0 0 23px;

    color: #FFFFFF;
    font-size: clamp(35px, 4vw, 53px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -.055em;
}

.waitlist-content h2 em {
    display: block;
    color: #E8CD9C;
    font-style: normal;
}

.waitlist-description {
    max-width: 500px;
    margin: 0;

    color: #D1E0D5;
    font-size: 15px;
    line-height: 1.8;
}

/* BENEFÍCIOS */

.waitlist-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 32px;
}

.waitlist-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #E2EBE4;
    font-size: 13px;
    font-weight: 600;
}

.waitlist-highlights svg {
    width: 19px;
    height: 19px;
    color: #D8C297;
    stroke-width: 1.8;
}

/* =========================================
   CARTÃO DO FORMULÁRIO
========================================= */

.waitlist-form-card {
    position: relative;
    z-index: 1;

    min-width: 0;
    padding: 36px;

    background: #FFFFFF;
    border-radius: 21px;

    box-shadow: 0 20px 65px rgba(0,0,0,.12);
}

.waitlist-form-header {
    margin-bottom: 27px;
}

.waitlist-form-icon {
    display: grid;
    place-items: center;

    width: 55px;
    height: 55px;
    margin-bottom: 20px;

    background: #E9F1E8;
    border-radius: 15px;
    color: #52745F;
}

.waitlist-form-icon svg {
    width: 27px;
    height: 27px;
    stroke-width: 1.7;
}

.waitlist-form-header h3 {
    margin: 0 0 10px;

    color: #1E3D35;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.waitlist-form-header p {
    margin: 0;

    color: #697C70;
    font-size: 13px;
    line-height: 1.7;
}

/* FORMULÁRIO */

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waitlist-form > label:not(.waitlist-consent) {
    color: #315345;
    font-size: 12px;
    font-weight: 750;
}

.waitlist-form input[type="email"] {
    width: 100%;
    min-width: 0;
    height: 51px;
    padding: 0 15px;

    color: #1E3D35;
    background: #F8FAF7;

    border: 1px solid #DCE7DC;
    border-radius: 11px;

    font: inherit;
    font-size: 13px;
    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.waitlist-form input[type="email"]:focus {
    border-color: #7DAD88;
    box-shadow: 0 0 0 3px rgba(125,173,136,.15);
}

.waitlist-form input[type="email"]::placeholder {
    color: #A1AFA3;
}

/* CONSENTIMENTO */

.waitlist-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: 9px 0 7px;
    cursor: pointer;
}

.waitlist-consent input {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;

    accent-color: #1E3D35;
    cursor: pointer;
}

.waitlist-consent span {
    color: #6B7E70;
    font-size: 11px;
    line-height: 1.65;
}

.waitlist-consent a {
    color: #315F48;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.waitlist-purposes {
    border: 0;
    padding: 0;
    margin: 10px 0 0;
    min-width: 0;
}

.waitlist-purposes legend {
    color: #315345;
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 8px;
}

.waitlist-purpose-note {
    margin: 4px 0 10px;
    color: #6B7E70;
    font-size: 11px;
    line-height: 1.65;
}

.waitlist-purpose-note a {
    color: #315F48;
    font-weight: 700;
    text-decoration: underline;
}

/* BOTÃO */

.waitlist-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 52px;
    padding: 13px 18px;

    border: none;
    border-radius: 11px;

    background: #1E3D35;
    color: #FFFFFF;

    font: inherit;
    font-size: 12px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.waitlist-submit:hover {
    background: #2D5848;
    transform: translateY(-2px);
}

.waitlist-submit:focus-visible {
    outline: 3px solid #A0BEA6;
    outline-offset: 3px;
}

.waitlist-submit svg {
    width: 18px;
    height: 18px;
}

/* PRIVACIDADE */

.waitlist-privacy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 7px;

    margin-top: 19px;

    color: #859589;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

.waitlist-privacy svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .waitlist-section {
        padding: 85px 0;
    }

    .waitlist-panel {
        gap: 35px;
        padding: 40px;
    }

    .waitlist-form-card {
        padding: 27px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 750px) {

    .waitlist-section {
        padding: 65px 0;
    }

    .waitlist-panel {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 35px 25px;
        border-radius: 20px;
    }

    .waitlist-content h2 {
        font-size: clamp(32px, 8vw, 42px);
    }

    .waitlist-description {
        font-size: 13px;
    }

    .waitlist-highlights {
        gap: 12px;
        margin-top: 25px;
    }

    .waitlist-highlights span {
        font-size: 12px;
    }

    .waitlist-form-card {
        padding: 26px 21px;
        border-radius: 17px;
    }

    .waitlist-form-header h3 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .waitlist-submit,
    .waitlist-form input[type="email"] {
        transition: none;
    }
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.waitlist-feedback[hidden] {
    display: none;
}

.waitlist-feedback {
    margin-top: 20px;
    padding: 22px;
    border-radius: 14px;
    background: #EFF5EE;
    border: 1px solid #CBD7CC;
    color: #1E3D35;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}

.waitlist-feedback[data-state="error"] {
    background: #FFF3EF;
    border-color: #EAC4BA;
    color: #873E34;
}

.waitlist-form[hidden] {
    display: none;
}

.waitlist-feedback:focus {
    outline: none;
}

/* Modal de confirmação de contacto */

.waitlist-success-dialog {
    width: min(460px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid #CBD7CC;
    border-radius: 22px;
    background: #FFFFFF;
    color: #1E3D35;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .22);
}

.waitlist-success-dialog::backdrop {
    background: rgba(12, 28, 23, .72);
}

.waitlist-success-dialog__content {
    position: relative;
    padding: 48px 34px 36px;
    text-align: center;
}

.waitlist-success-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6C8A7A;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.waitlist-success-dialog__close:hover {
    background: #F1F4EF;
}

.waitlist-success-dialog__icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #E8F0E7;
    color: #1E3D35;
    font-size: 30px;
    font-weight: 700;
}

.waitlist-success-dialog__eyebrow {
    margin: 0 0 13px;
    color: #6C8A7A;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.waitlist-success-dialog h2 {
    margin: 0 0 19px;
    color: #1E3D35;
    font-size: clamp(27px, 5vw, 34px);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.waitlist-success-dialog__message {
    margin: 0;
    color: #5E7068;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}

.waitlist-success-dialog__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 48px;
    margin-top: 30px;
    padding: 12px 28px;
    border: 0;
    border-radius: 10px;
    background: #1E3D35;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.waitlist-success-dialog__button:hover {
    background: #2B5449;
}

.waitlist-success-dialog button:focus-visible {
    outline: 3px solid #C9A46A;
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .waitlist-success-dialog__content {
        padding: 42px 22px 28px;
    }
}

/* Bloquear o scroll da página enquanto o popup estiver aberto */

html.waitlist-dialog-open {
    overflow: hidden;
}

html.waitlist-dialog-open body {
    position: fixed;
    top: var(--waitlist-dialog-scroll-top, 0px);
    left: 0;
    width: 100%;
    overflow: hidden;
}