/* Custom style for Temer Properties WPForms Popup */
.popup-container {
    display: flex;
    flex-direction: row;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    max-width: 850px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    position: relative;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    margin: 0 auto;
}

.popup-image {
    flex: 1.1;
    min-width: 45%;
    position: relative;
    background-color: #f1f5f9;
}

.popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-form {
    flex: 1.2;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: #ffffff;
}

.close-popup {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    font-weight: 300;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: all 0.25s ease;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
}

.close-popup:hover {
    color: #ef4444;
    background: #fee2e2;
    transform: rotate(90deg);
}

.popup-form h2 {
    font-size: 28px;
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.2;
}

.popup-form h2 .highlight {
    color: #84A441;
}

.popup-form p {
    color: #64748b;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* WPForms Modern Override */
.popup-form .wpforms-container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.popup-form .wpforms-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.popup-form .wpforms-field {
    padding: 0 !important;
    margin-bottom: 0 !important;
    clear: both;
}

.popup-form .wpforms-field-label {
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: inline-block !important;
}

.popup-form .wpforms-field input[type="text"],
.popup-form .wpforms-field input[type="email"],
.popup-form .wpforms-field input[type="tel"],
.popup-form .wpforms-field textarea,
.popup-form .wpforms-field select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background-color: #f8fafc !important;
    color: #1e293b !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}

.popup-form .wpforms-field input:focus,
.popup-form .wpforms-field textarea:focus,
.popup-form .wpforms-field select:focus {
    border-color: #84A441 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(132, 164, 65, 0.15) !important;
    outline: none !important;
}

.popup-form .wpforms-submit-container {
    padding: 0 !important;
    margin-top: 10px !important;
}

.popup-form button.wpforms-submit {
    width: 100% !important;
    background-color: #84A441 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 6px rgba(132, 164, 65, 0.2) !important;
    font-family: inherit !important;
}

.popup-form button.wpforms-submit:hover {
    background-color: #728f35 !important;
    box-shadow: 0 6px 12px rgba(132, 164, 65, 0.3) !important;
}

.popup-form button.wpforms-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(132, 164, 65, 0.2) !important;
}

/* Validation styling */
.popup-form .wpforms-error {
    color: #ef4444 !important;
    font-size: 12px !important;
    margin-top: 4px !important;
    display: block !important;
}

.popup-form input.wpforms-error {
    border-color: #f87171 !important;
    background-color: #fef2f2 !important;
}

/* Responsive adjust */
@media (max-width: 768px) {
    .popup-container {
        flex-direction: column;
        max-width: 480px;
    }
    .popup-image {
        height: 200px;
        min-width: 100%;
    }
    .popup-form {
        padding: 32px 24px;
    }
    .popup-form h2 {
        font-size: 24px;
    }
    .popup-form p {
        margin-bottom: 20px;
    }
}
