.contact {
    position: fixed;
    min-height: 100vh;
    width: 100%;
    background-color: black;
    z-index: 99;
    opacity: 0.6;
    display: none;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.main-contact {
    position: fixed;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 768px;
    width: 100%;
    z-index: 100;
    padding: 16px;
    box-sizing: border-box;
    max-height: 90vh; /* Limit height to fit viewport */
    overflow: auto; /* Enable scrolling if needed */
}


.contact-form {
    position: relative;
    background: linear-gradient(to right, aquamarine, teal);
    border-radius: 12px;
    margin: 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    font-family: 'kayak', sans-serif;
    overflow: hidden;
}

.right-content {
    padding: 16px;
}

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

.left-content img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.contact-form-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.contact-form-main label {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.contact-form-main input,
.contact-form-main textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* Fixes overflow */
    padding: 10px 12px;
    font-size: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 16px;
}

.contact-form-main input:focus,
.contact-form-main textarea:focus {
    border-color: #6E07F3;
    box-shadow: 0 0 5px rgba(110, 7, 243, 0.3);
    outline: none;
}

.contact-form-main textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form-main button {
    background: #6E07F3;
    color: #fff;
    border: none;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form-main button:hover {
    background: #5a06d1;
}

.close-btn-contact{
    position: absolute;
    right: 16px;
    top:16px;
    height: 30px;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    .contact-form {
        grid-template-columns: repeat(1, 1fr);
    }
    .left-content img {
        display: none;
    }
}
