/* --- CONSULTATION POPUP MODAL --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark blurred background */
    backdrop-filter: blur(4px); /* Blur content behind popup */
    z-index: 2000; /* Ensure it stays on top of everything including Header */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Activate Popup Visibility */
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* White Content Box */
.popup-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.7); /* Scale down by default */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Smooth bouncing zoom effect */
}

/* Zoom back to normal size when popup is active */
.popup-overlay.active .popup-content {
    transform: scale(1);
}

/* Close Button (X icon) */
.popup-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.popup-close-btn:hover {
    color: var(--primary-black, #111111);
}

/* Popup Header Style */
.popup-header {
    text-align: center;
    margin-bottom: 25px;
}

.popup-header h3 {
    font-size: 24px;
    color: var(--primary-black, #111111);
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.popup-header p {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

/* Form Input Structure */
.popup-form .form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.popup-form label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black, #111111);
    margin-bottom: 6px;
}

.popup-form input,
.popup-form select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font-main, sans-serif);
    color: var(--primary-black, #111111);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.popup-form input:focus,
.popup-form select:focus {
    border-color: var(--primary-orange, #ff6600);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

/* Submit Button */
.popup-submit-btn {
    width: 100%;
    background-color: var(--primary-orange, #ff6600);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.popup-submit-btn:hover {
    background-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 102, 0, 0.4);
}

/* Responsive optimization for small mobile devices */
@media (max-width: 480px) {
    .popup-content {
        width: 92%;
        padding: 30px 20px;
    }
    .popup-header h3 {
        font-size: 20px;
    }
}


/* --- SMALL THANK YOU POPUP FOR CONTACT FORM --- */

.success-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    background: rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.success-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-popup-box {
    width: 100%;
    max-width: 360px;
    position: relative;

    background: #ffffff;
    border-radius: 18px;
    padding: 34px 26px 28px;

    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);

    transform: translateY(12px) scale(0.94);
    transition: transform 0.25s ease;
}

.success-popup-overlay.active .success-popup-box {
    transform: translateY(0) scale(1);
}

.success-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;

    border: none;
    background: transparent;

    font-size: 26px;
    line-height: 1;
    color: #999999;
    cursor: pointer;
}

.success-popup-close:hover {
    color: #111111;
}

.success-popup-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;

    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a18, #ff3d00);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    font-size: 24px;
}

.success-popup-box h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #111111;
}

.success-popup-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #666666;
}

@media (max-width: 480px) {
    .success-popup-box {
        max-width: 92%;
        padding: 30px 20px 24px;
    }

    .success-popup-box h3 {
        font-size: 21px;
    }

    .success-popup-box p {
        font-size: 14px;
    }
}