/* =========================
   OVERLAY – CENTER FIX
========================= */
#wdp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999999;
}
#wdp-overlay.active {
    display: flex;
}

/* =========================
   POPUP CONTAINER
========================= */
.wdp-popup {
    background: #fff;
    width: 1000px;
    max-width: 95%;
    height: 500px;
    max-height: 92dvh;
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

/* =========================
   CLOSE BUTTON
========================= */
.wdp-close {
    position: absolute;
    right: 14px;
    top: 12px;
    font-size: 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
}

/* =========================
   LEFT IMAGE
========================= */
.wdp-left {
    width: 50%;
    background: #e6f6f8;
}
.wdp-left img {
    width: 100%;
    height: 100%;
	display: flex;
    object-fit: cover;
}

/* =========================
   RIGHT FORM AREA
========================= */
.wdp-right {
    width: 50%;
    padding: 20px 24px;
}

/* =========================
   HEADINGS
========================= */
.wdp-right h3 {
    margin-bottom: 6px;
}
.wdp-right h4 {
    margin-bottom: 14px;
}
.wdp-right .terms{
	margin-bottom: 0;
}

/* =================================================
   🔥 CONSULTATION FORM – FINAL LAYOUT
================================================= */
.consultation-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px !important;
}

/* default full width */
.consultation-form .form-group {
    width: 100%;
}

/* FIRST 3 FIELDS IN ONE ROW */
.consultation-form .form-group:nth-child(1),
.consultation-form .form-group:nth-child(2),
.consultation-form .form-group:nth-child(3) {
    width: calc(33.33% - 10px);
}

/* labels */
.consultation-form label {
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

/* inputs + textarea */
.consultation-form input,
.consultation-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    font-size: 14px;
    background: #f7f7f7;
    box-sizing: border-box;
}

/* textarea */
.consultation-form textarea {
    min-height: 90px;
    resize: none;
}

/* dropdown full width */
.multi-select-dropdown {
    width: 100%;
}

/* =========================
   SUBMIT + PRIVACY
========================= */
.form-footer {
    width: 100%;
    margin-top: 10px;
}

.form-footer input[type="submit"] {
    width: 100%;
    background: #0b5d3b;
    color: #fff;
    padding: 13px;
    border-radius: 8px;
    font-size: 15px;
    border: none;
    cursor: pointer;
}

.privacy-text {
    font-size: 12px;
    text-align: center;
    margin-top: 8px;
    color: #666;
}

/* =========================
   CF7 FIX
========================= */
span.wpcf7-spinner {
    display: none;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {
    .wdp-popup {
        flex-direction: column;
        height: auto;
    }

    .wdp-left {
        width: 100%;
    }

    .wdp-right {
        width: 100%;
        padding: 18px;
    }

    .consultation-form .form-group:nth-child(1),
    .consultation-form .form-group:nth-child(2),
    .consultation-form .form-group:nth-child(3) {
        width: 100%;
    }
	.wdp-popup{
		overflow: auto;
	}
}

/* =========================
   PREMIUM FORM SPACING
========================= */

/* Right side overall breathing space */
.wdp-right {
    padding: 28px 30px !important;
	overflow-y: auto;
}

/* Heading spacing refine */
.wdp-right h3 {
    margin-top: 6px;
    margin-bottom: 8px;
}

.wdp-right h4 {
    margin-bottom: 18px;
    line-height: 1.4;
}

/* Form gap smooth */
.consultation-form {
    row-gap: 16px;
}

/* Label spacing */
.consultation-form label {
    margin-bottom: 6px;
}

/* Inputs premium look */
.consultation-form input,
.consultation-form textarea {
    background: #f8f8f8;
    border: 1px solid #e3e3e3;
    transition: all 0.2s ease;
}

/* Focus effect */
.consultation-form input:focus,
.consultation-form textarea:focus {
    outline: none;
    border-color: #0b5d3b;
    background: #fff;
}

/* Dropdown spacing */
.multi-select-dropdown {
    margin-top: 4px;
}

/* Submit button spacing */
.form-footer {
    margin-top: 6px;
}

/* Button hover premium */
.form-footer input[type="submit"] {
    transition: all 0.2s ease;
}

.form-footer input[type="submit"]:hover {
    background: #094d32;
    transform: translateY(-1px);
}

/* Privacy text breathing */
.privacy-text {
    margin-top: 10px;
    line-height: 1.4;
}

/* Close button polish */
.wdp-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.wdp-close:hover {
    background: #f2f2f2;
}

/* =========================
   MOBILE POLISH
========================= */
@media (max-width: 768px) {
    .wdp-right {
        padding: 16px 20px !important;
    }
	.wdp-left img {
    	height: auto;
    	object-fit: contain;
	}
	.wdp-right{
		overflow-y: clip;
	}
}
