/* Contact Modal Styles */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.25s ease-out;
    will-change: opacity, display;
}

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

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-content {
    background-color: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
    contain: layout style paint;
}

.contact-modal-content::-webkit-scrollbar {
    display: none;
}

@keyframes slideUp {
    from {
        transform: translateY(30px) translateZ(0);
        opacity: 0;
    }
    to {
        transform: translateY(0) translateZ(0);
        opacity: 1;
    }
}

.contact-modal-header {
    background: linear-gradient(135deg, #0ADBCD 0%, #00a89e 100%);
    padding: 30px 30px 25px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.contact-modal-header h2 {
    font-family: "Young Serif", serif;
    font-size: 32px;
    color: #ffffff;
    margin: 0 0 8px 0;
    font-weight: 400;
}

.modal-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.contact-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 28px;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 200ms ease;
    flex-shrink: 0;
}

.contact-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.contact-form {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0a0a0a;
}

.form-group input,
.form-group textarea {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
    will-change: border-color, box-shadow;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ADBCD;
    box-shadow: 0 0 0 3px rgba(10, 219, 205, 0.1);
}

.form-group textarea {
    resize: vertical;
    font-family: "Roboto", sans-serif;
    line-height: 1.5;
}

.budget-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 14px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0ADBCD;
    pointer-events: none;
}

.budget-input-wrapper input {
    padding-left: 36px;
    width: 100%;
}

.form-group small {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.contact-submit-btn {
    background-color: #0ADBCD;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 200ms ease, transform 200ms ease;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background-color: #00a89e;
    transform: translateY(-2px);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-modal-content {
        width: 95%;
    }

    .contact-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-modal-header {
        padding: 25px 25px 20px;
    }

    .contact-modal-header h2 {
        font-size: 26px;
    }

    .contact-modal-close {
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
}
