/* ═══════════════════════════════════════════════════
   VOVCHYK Popup — popup.css
   ═══════════════════════════════════════════════════ */

/* Оверлей */
.vvdp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.vvdp-overlay.is-active {
    display: flex;
}

/* Попап */
.vvdp-popup {
    background: #fff;
    width: 100%;
    max-width: 520px;
    position: relative;
    padding: 52px 48px 48px;
    animation: vvdpIn .25s ease;
}
@keyframes vvdpIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Кнопка закриття */
.vvdp-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 6px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
}
.vvdp-close:hover { color: #111; }

/* Тексти */
.vvdp-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 10px;
}
.vvdp-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0 0 10px;
}
.vvdp-sub {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #E2E2E2;
}

/* ── Contact Form 7 стилізація ────────────────────── */
.vvdp-form-wrap .wpcf7 { margin: 0; }
.vvdp-form-wrap .wpcf7-form { display: flex; flex-direction: column; }
.vvdp-form-wrap .wpcf7-form p { margin: 0 0 16px; }
.vvdp-form-wrap .wpcf7-form p:last-child { margin-bottom: 0; }

.vvdp-form-wrap .wpcf7-form input[type="text"],
.vvdp-form-wrap .wpcf7-form input[type="tel"],
.vvdp-form-wrap .wpcf7-form input[type="email"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #E2E2E2;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: #1C1C1C;
    padding: 12px 0;
    outline: none;
    border-radius: 0;
    transition: border-color .2s;
    -webkit-appearance: none;
}
.vvdp-form-wrap .wpcf7-form input[type="text"]:focus,
.vvdp-form-wrap .wpcf7-form input[type="tel"]:focus,
.vvdp-form-wrap .wpcf7-form input[type="email"]:focus {
    border-bottom-color: #111;
}
.vvdp-form-wrap .wpcf7-form input::placeholder { color: #bbb; }

.vvdp-form-wrap .wpcf7-form input[type="submit"] {
    margin-top: 8px;
    width: 100%;
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 16px 32px;
    border: none;
    cursor: pointer;
    border-radius: 0;
    transition: background .2s;
    -webkit-appearance: none;
}
.vvdp-form-wrap .wpcf7-form input[type="submit"]:hover { background: #333; }

.vvdp-form-wrap .wpcf7-not-valid-tip {
    font-size: 11px;
    color: #c00;
    margin-top: 4px;
    display: block;
}
.vvdp-form-wrap .wpcf7-response-output {
    font-size: 13px;
    margin: 16px 0 0;
    padding: 12px 16px;
    border: 1px solid #E2E2E2;
    border-radius: 0;
}
.vvdp-form-wrap .wpcf7-mail-sent-ok {
    border-color: #4caf50;
    color: #2e7d32;
    background: #f1f8f1;
}
.vvdp-form-wrap .wpcf7-validation-errors,
.vvdp-form-wrap .wpcf7-mail-sent-ng {
    border-color: #f44336;
    color: #b71c1c;
    background: #fff5f5;
}

/* ── Нативна форма (fallback) ─────────────────────── */
.vvdp-native-form { display: flex; flex-direction: column; }
.vvdp-native-form p { margin: 0 0 16px; }
.vvdp-native-form p:last-of-type { margin-bottom: 0; }

.vvdp-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 6px;
}
.vvdp-native-form input[type="text"],
.vvdp-native-form input[type="tel"] {
    width: 100%;
    border: none;
    border-bottom: 1px solid #E2E2E2;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: #1C1C1C;
    padding: 12px 0;
    outline: none;
    border-radius: 0;
    transition: border-color .2s;
    -webkit-appearance: none;
}
.vvdp-native-form input[type="text"]:focus,
.vvdp-native-form input[type="tel"]:focus {
    border-bottom-color: #111;
}
.vvdp-native-form input::placeholder { color: #bbb; }
.vvdp-native-form input[type="submit"] {
    margin-top: 8px;
    width: 100%;
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 16px 32px;
    border: none;
    cursor: pointer;
    border-radius: 0;
    transition: background .2s;
    -webkit-appearance: none;
}
.vvdp-native-form input[type="submit"]:hover { background: #333; }
.vvdp-native-msg {
    font-size: 13px;
    margin-top: 16px;
    padding: 12px 16px;
    display: none;
}
.vvdp-native-msg.success {
    display: block;
    border: 1px solid #4caf50;
    color: #2e7d32;
    background: #f1f8f1;
}
.vvdp-native-msg.error {
    display: block;
    border: 1px solid #f44336;
    color: #b71c1c;
    background: #fff5f5;
}

/* ── Mobile ───────────────────────────────────────── */
@media (max-width: 600px) {
    .vvdp-popup {
        padding: 40px 24px 32px;
        max-height: 95vh;
        overflow-y: auto;
    }
    .vvdp-close { top: 14px; right: 14px; }
}
