/* ── OVERLAY ── */
.dm-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.62);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.dm-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── BOX ── */
.dm-popup-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5);
    background: #fff;
}

/* ── CLOSE ── */
.dm-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    color: #111;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.dm-popup-close:hover {
    background: #fff;
}

/* ── IMAGE ── */
.dm-popup-image {
    position: relative;
    overflow: hidden;
    min-height: 460px;
}
.dm-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── CONTENT ── */
.dm-popup-content {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.dm-popup-content h3 {
    margin: 0 0 20px;
    font-size: 42px;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
}

.dm-popup-text {
    margin: 0 0 28px;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
}

/* ── FORM ── */
.dm-popup-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 14px;
}

.dm-popup-form input[type="email"],
.dm-popup-form input[type="text"],
.dm-popup-form button,
.dm-popup-form input[type="submit"] {
    display: block;
    width: 100%;
    height: 50px;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    box-sizing: border-box;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.dm-popup-form input[type="email"],
.dm-popup-form input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}
.dm-popup-form form,
.dm-popup-form > div,
.dm-popup-form > * {
    width: 100% !important;
    max-width: 100% !important;
}

.dm-popup-form input[type="email"],
.dm-popup-form input[type="text"] {
    border: 1.5px solid #ddd !important;
    padding: 0 16px !important;
    color: #111 !important;
    background: #fff !important;
    margin-bottom: 10px !important;
}

.dm-popup-form input[type="email"]:focus,
.dm-popup-form input[type="text"]:focus {
    border-color: #111 !important;
}

.dm-popup-form button,
.dm-popup-form input[type="submit"] {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: opacity 0.18s ease !important;
    padding: 0 !important;
}

.dm-popup-form button:hover,
.dm-popup-form input[type="submit"]:hover {
    opacity: 0.82 !important;
}

/* ── NOTE ── */
.dm-popup-note {
    margin: 0;
    font-size: 12px;
    color: #aaa;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
    .dm-popup-box {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }
    .dm-popup-image {
        min-height: 200px;
        max-height: 220px;
    }
    .dm-popup-content {
        padding: 28px 22px;
    }
    .dm-popup-content h3 {
        font-size: 30px;
    }
}
/* ── FORM OVERRIDES ── */
.dm-popup-form .dm-sf {
    width: 100% !important;
    max-width: 100% !important;
}
.dm-popup-form .dm-sf__inputwrap {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px !important;
}
.dm-popup-form .dm-sf__email,
.dm-popup-form .dm-sf__btn {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 50px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.dm-popup-form .dm-sf__email {
    border: 1.5px solid #ddd !important;
    padding: 0 16px !important;
    color: #111 !important;
    background: #fff !important;
}
.dm-popup-form .dm-sf__email:focus {
    border-color: #111 !important;
}
.dm-popup-form .dm-sf__btn {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    padding: 0 !important;
}
.dm-popup-form .dm-sf__btn:hover {
    opacity: 0.82 !important;
}
.dm-popup-form .dm-sf__subtitle {
    display: none !important;
}