/* =========================================
   Soft & Aesthetic Minimalist Design
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&family=Syne:wght@400;500;600;700&display=swap');

.consultation-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 245, 0.6); /* Light frosted glass */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.consultation-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.consultation-popup-content {
    background: #ffffff;
    width: 950px;
    max-width: 90%;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    position: relative;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.08);
}

.consultation-popup-overlay.show .consultation-popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Elegant & Highly Visible Close Button */
.consultation-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f4f4f4;
    border: 1px solid #d4d4d4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #111;
    font-weight: 600;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.consultation-popup-close:hover {
    background: #ff4757; /* Bright red for clear visibility on hover */
    color: #fff;
    border-color: #ff4757;
    transform: rotate(90deg);
}

/* Left Side - Soft Image */
.consultation-popup-left {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
}

.consultation-popup-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 1.5s ease;
}

.consultation-popup-overlay.show .consultation-popup-left img {
    transform: scale(1.03); /* Very subtle soft scale */
}

/* Right Side - Form Content */
.consultation-popup-right {
    flex: 1;
    padding: 35px 50px; /* Reduced vertical padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.consultation-popup-right h2 {
    font-family: 'Syne', sans-serif;
    font-size: 30px; /* Slightly smaller */
    color: #111;
    margin-bottom: 8px; /* Reduced margin */
    font-weight: 600;
    line-height: 1.2;
}

.consultation-popup-right p {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: #666;
    margin-bottom: 25px; /* Reduced margin */
    font-weight: 400;
}

/* Inputs styling - Light Border & Visible */
.consult-input-group {
    margin-bottom: 15px; /* Reduced margin */
    position: relative;
}

.consult-input-group input,
.consult-input-group select {
    width: 100%;
    padding: 12px 20px; /* Reduced padding */
    background: #fafafa;
    border: 1px solid #dcdcdc; /* Added visible light border */
    border-radius: 30px; /* Pill shape */
    font-size: 14px; /* Slightly smaller text */
    color: #333;
    transition: all 0.3s ease;
    font-family: 'Manrope', sans-serif;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

/* Custom Dropdown Arrow */
.consult-input-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    padding-right: 40px;
    cursor: pointer;
}

.consult-input-group input:focus,
.consult-input-group select:focus {
    background: #fff;
    border-color: #928575; /* Brand color */
    box-shadow: 0 0 8px rgba(146, 133, 117, 0.2);
    outline: none;
}

.consult-input-group input::placeholder,
.consult-input-group select::placeholder {
    color: #999;
    font-weight: 400;
}

/* Submit Button - Brand Match */
.consultation-submit-btn {
    width: 100%;
    padding: 14px; /* Reduced padding */
    margin-top: 5px; /* Reduced margin */
    background: #928575; /* Their brand earthy taupe */
    color: #ffffff;
    border: none;
    border-radius: 30px; /* Pill shape */
    font-size: 15px;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.consultation-submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: #000;
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.consultation-submit-btn:hover::before {
    left: 0;
}

.consultation-submit-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .consultation-popup-right {
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .consultation-popup-content {
        flex-direction: column;
        width: 90%;
        max-width: 420px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .consultation-popup-left {
        height: 180px; /* Reduced height */
        flex: none;
    }
    
    .consultation-popup-right {
        padding: 25px 20px;
        flex: none;
    }
    
    .consultation-popup-right h2 {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .consultation-popup-right p {
        margin-bottom: 20px;
        font-size: 14px;
    }
}
