/* ========== CONTACT MODAL ========== */
.contact-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-modal-overlay.active {
    display: flex;
}

.contact-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 460px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.contact-modal-close:hover {
    background: #e2e8f0;
    color: #1a2b3c;
}

.contact-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #319AD5;
    text-align: center;
    margin-bottom: 8px;
}

.contact-modal-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;
}

.contact-modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-modal-form input,
.contact-modal-form select,
.contact-modal-form textarea {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    color: #1a2b3c;
    background: #f8fafc;
    outline: none;
    transition: 0.2s ease;
}

.contact-modal-form input::placeholder,
.contact-modal-form select,
.contact-modal-form textarea::placeholder {
    color: #94a3b8;
}

.contact-modal-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-modal-form select option {
    color: #1a2b3c;
}

.contact-modal-form input:focus,
.contact-modal-form select:focus,
.contact-modal-form textarea:focus {
    border-color: #319AD5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(49, 154, 213, 0.1);
}

.contact-modal-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-modal-recaptcha {
    display: flex;
    justify-content: center;
    margin: 4px 0;
}

.contact-modal-submit {
    width: 100%;
    padding: 14px;
    background: #319AD5;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: 0.2s ease;
    margin-top: 4px;
}

.contact-modal-submit:hover {
    background: #2780b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 154, 213, 0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 576px) {
    .contact-modal {
        padding: 30px 22px;
        border-radius: 12px;
    }

    .contact-modal-title {
        font-size: 1.3rem;
    }
}
