:root {
    --color-font: rgb(0, 163, 238);
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    padding: 20px;
}

.loader-gif {
    width: 1500px;
    margin-bottom: 30px;
    height: auto;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    animation: modal-appear 0.4s ease-out;
    margin: auto;
    width: 30%;
}

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

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #555;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #000;
}

.modal-header {
    background-color: #f5f5f5;
    padding: 30px 25px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    color: #333;
    font-size: 24px;
    margin: 0 0 12px;
    font-weight: 700;
}

.modal-header h2 span {
    color: var(--color-font);
}

.modal-header p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.modal-body {
    padding: 25px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#email-input, #phone-input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

#email-input:focus, #phone-input:focus {
    border-color: #4a90e2;
    outline: none;
}

.input-hint {
    text-align: center;
    color: #888;
    margin: 5px 0;
    font-size: 14px;
}

.submit-btn {
    background-color: #2c6bff;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
    margin-top: 10px;
    width: 100%;
}

.submit-btn:hover {
    background-color: #00a9ec;
}

.modal-footer {
    background-color: #f9f9f9;
    padding: 15px 25px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.modal-footer p {
    color: #444;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
}


.modal-centered {
    display: flex !important;
    justify-content: center;
    align-items: center;
}


@media (max-width: 1200px) {
    .modal-content {
        width: 40%;
    }
}

@media (max-width: 992px) {
    .modal-content {
        width: 50%;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
    
    .modal-header p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 70%;
    }
    
    .modal-header {
        padding: 25px 20px 15px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .modal-header p {
        font-size: 14px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    #email-input, #phone-input {
        padding: 12px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .modal-footer {
        padding: 12px 20px;
    }
    
    .modal-footer p {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .modal-content {
        width: 85%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px 15px 12px;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-header p {
        font-size: 13px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    #email-input, #phone-input {
        padding: 10px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .input-hint {
        font-size: 12px;
    }
    
    .modal-footer {
        padding: 10px 15px;
    }
    
    .modal-footer p {
        font-size: 14px;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

@media (max-width: 400px) {
    .modal-content {
        width: 90%;
        margin: 5px;
    }
    
    .modal-header {
        padding: 15px 12px 10px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
    
    .modal-header p {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .modal-body {
        padding: 12px;
    }
    
    #email-input, #phone-input {
        padding: 8px;
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .input-hint {
        font-size: 11px;
    }
    
    .modal-footer {
        padding: 8px 12px;
    }
    
    .modal-footer p {
        font-size: 13px;
    }
    
    .close-modal {
        top: 8px;
        right: 12px;
        font-size: 20px;
        width: 25px;
        height: 25px;
    }
}