@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

#chanya-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 13, 10, 0.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    font-family: 'Inter', sans-serif;
}

#chanya-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.chanya-popup-box {
    display: flex;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    background: #faf9f7;
    position: relative;
    overflow: hidden;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#chanya-popup-overlay.is-open .chanya-popup-box {
    transform: translateY(0) scale(1);
}

/* Close */

.chanya-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    background: rgba(250,249,247,0.85);
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease, background 0.2s ease;
}

.chanya-popup-close:hover {
    color: #1a1a1a;
    background: #fff;
}

/* Left image */

.chanya-popup-image {
    width: 45%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.chanya-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chanya-popup-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,9,6,0.55) 0%, rgba(10,9,6,0.1) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 28px 24px;
}

.chanya-popup-image-text {
    font-size: 26px;
    font-weight: 300;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Right form */

.chanya-popup-right {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 36px;
    overflow-y: auto;
}

.chanya-popup-inner {
    width: 100%;
}

.chanya-popup-eyebrow {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7a7455;
    margin: 0 0 12px;
}

.chanya-popup-title {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 12px;
}

.chanya-popup-sub {
    font-size: 13px;
    color: #888;
    line-height: 1.65;
    margin: 0 0 24px;
}

/* WPForms — form field */

.chanya-popup-form .wpforms-form .wpforms-field {
    margin: 0 0 10px;
    padding: 0;
}

.chanya-popup-form .wpforms-form .wpforms-field-label {
    display: none !important;
}

.chanya-popup-form .wpforms-form .wpforms-field input[type="email"],
.chanya-popup-form .wpforms-form .wpforms-field input[type="text"] {
    width: 100% !important;
    height: 48px !important;
    border: 1px solid #d0cfc8 !important;
    border-radius: 0 !important;
    font-size: 13px !important;
    padding: 0 16px !important;
    font-family: 'Inter', sans-serif !important;
    color: #1a1a1a !important;
    background: #fff !important;
    outline: none !important;
    box-sizing: border-box !important;
    text-align: left !important;
    box-shadow: none !important;
}

.chanya-popup-form .wpforms-form .wpforms-field input[type="email"]:focus,
.chanya-popup-form .wpforms-form .wpforms-field input[type="text"]:focus {
    border-color: #7a7455 !important;
}

.chanya-popup-form .wpforms-form .wpforms-field input::placeholder {
    color: #bbb !important;
    font-size: 13px !important;
}

.chanya-popup-form .wpforms-form .wpforms-submit-container {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.chanya-popup-form .wpforms-form button[type="submit"],
.chanya-popup-form .wpforms-form input[type="submit"] {
    width: 100% !important;
    height: 48px !important;
    background: #7a7455 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    font-family: 'Inter', sans-serif !important;
    transition: background 0.2s ease !important;
    box-shadow: none !important;
}

.chanya-popup-form .wpforms-form button[type="submit"]:hover {
    background: #656144 !important;
}

/* Confirmation message */

.chanya-popup-form .wpforms-confirmation-container-full {
    font-size: 14px;
    color: #4a7c4e;
    padding: 16px;
    background: #f0f7f0;
    border-left: 2px solid #4a7c4e;
    margin-top: 10px;
}

/* Privacy note */

.chanya-popup-privacy {
    font-size: 10px;
    color: #bbb;
    margin: 14px 0 0;
    letter-spacing: 0.03em;
}

/* Mobile — stack vertically */

@media (max-width: 600px) {
    .chanya-popup-box {
        flex-direction: column;
        max-width: 420px;
        max-height: 92vh;
    }

    .chanya-popup-image {
        width: 100%;
        height: 180px;
        flex-shrink: 0;
    }

    .chanya-popup-image-text {
        font-size: 20px;
    }

    .chanya-popup-right {
        padding: 28px 24px 24px;
    }

    .chanya-popup-title {
        font-size: 19px;
    }
}