/* The Haven Collection | Exit-intent newsletter modal */

.hc-exit-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 10, 0.72);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: hc-exit-fade 0.4s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.hc-exit-backdrop.hc-exit-closing {
    animation: hc-exit-out 0.25s ease forwards;
}

@keyframes hc-exit-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hc-exit-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.hc-exit-card {
    position: relative;
    background: #faf8f5;
    color: #2c2c2c;
    max-width: 460px;
    width: 100%;
    padding: 44px 40px 36px;
    border: 1px solid rgba(201, 169, 110, 0.35);
    box-shadow: 0 16px 50px rgba(20, 16, 10, 0.28);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    animation: hc-exit-in 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes hc-exit-in {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hc-exit-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: 0;
    color: #6f6a62;
    cursor: pointer;
    padding: 6px;
    line-height: 0;
    transition: color 0.2s ease;
}

.hc-exit-close:hover { color: #1c1a17; }

.hc-exit-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #c9a96e;
    margin: 0 0 8px 0;
}

.hc-exit-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    color: #1c1a17;
    margin: 0 0 14px 0;
    letter-spacing: 0.01em;
    line-height: 1.15;
}

.hc-exit-body {
    font-size: 14px;
    line-height: 1.6;
    color: #6f6a62;
    margin: 0 0 24px 0;
}

.hc-exit-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
}

.hc-exit-form input[type="email"] {
    flex: 1 1 220px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #fff;
    padding: 12px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #2c2c2c;
    outline: none;
    transition: border-color 0.2s ease;
}

.hc-exit-form input[type="email"]:focus {
    border-color: #c9a96e;
}

.hc-exit-submit {
    background: #1c1a17;
    color: #f5efe2;
    border: 0;
    padding: 12px 22px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.hc-exit-submit:hover { background: #2a2620; }

.hc-exit-submit:disabled { opacity: 0.6; cursor: default; }

.hc-exit-dismiss-link {
    background: none;
    border: 0;
    padding: 0;
    margin: 8px 0 0 0;
    color: #8a857c;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.hc-exit-dismiss-link:hover { color: #1c1a17; }

.hc-exit-success {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: #1c1a17;
    margin: 12px 0;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .hc-exit-card {
        padding: 36px 24px 28px;
    }
    .hc-exit-title { font-size: 26px; }
    .hc-exit-form input[type="email"],
    .hc-exit-submit { flex: 1 1 100%; }
}
