/* Contact Form Popup CSS - Responsive */

/* Overlay */
.contactNSFormOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    animation: contactNSFormFadeIn 0.3s ease;
    /* overflow-y: auto; */
    padding: 20px;
}
.contactNSFormOverlay {
    overflow: visible;
}

.contactNSFormSelect {
    position: relative;
    z-index: 1001;
}

.contactNSFormOverlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes contactNSFormFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Container */
.contactNSFormContainer {
    background: #fff;
    border-radius: 0px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: contactNSFormSlideUp 0.3s ease;
}

@keyframes contactNSFormSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.contactNSFormClose {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contactNSFormClose:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

/* Title */
.contactNSFormTitle {
    margin: 0 0 30px 0;
    font-size: 28px;
    color: #333;
    text-align: center;
    font-weight: 600;
    display: none;
}

/* Form Groups */
.contactNSFormGroup {
    margin-bottom: 10px;
}

.contactNSFormGroup label {
    display: block;
    margin-bottom: 8px;
    color: var(--heading-color);
    font-weight: 500;
    font-size: 14px;
}

/* Input Fields */
.contactNSFormInput,
.contactNSFormSelect,
.contactNSFormTextarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.contactNSFormInput:focus,
.contactNSFormSelect:focus,
.contactNSFormTextarea:focus {
    outline: none;
    border-color: #e83e3f;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.contactNSFormTextarea {
    resize: none;
    min-height: 80px;
    height: 80px;
}

/* Submit Button */
.contactNSFormSubmitBtn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e83e3f 0%, #000 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 10px;
}

.contactNSFormSubmitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.contactNSFormSubmitBtn:active {
    transform: translateY(0);
}

/* Response Messages */
.contactNSFormResponse {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.contactNSFormResponse.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.contactNSFormResponse.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .contactNSFormContainer {
        padding: 30px 25px;
        margin: 20px;
    }
    
    .contactNSFormTitle {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .contactNSFormInput,
    .contactNSFormSelect,
    .contactNSFormTextarea {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .contactNSFormSubmitBtn {
        font-size: 15px;
        padding: 12px 18px;
    }
}

@media screen and (max-width: 480px) {
    .contactNSFormOverlay {
        padding: 15px;
    }
    
    .contactNSFormContainer {
        padding: 25px 20px;
    }
    
    .contactNSFormTitle {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .contactNSFormClose {
        font-size: 28px;
        width: 30px;
        height: 30px;
    }
}