﻿.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 235.02px;
    height: 365px;
    background-color: transparent;
    padding: 10px;
    z-index: 10;
}

    .contact-form h2 {
        height: 46px;
        width: 235.02px;
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 22.68px;
        text-align: center;
    }

    .contact-form p {
        margin-top: 10px;
        font-size: 0.75rem;
        font-weight: 400;
        line-height: 14.52px;
        text-align: center;
    }

.customer_enquiry {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 152.42px;
    height: 247px;
}

.input-group {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--basic_color);
    width: 151.95px;
}

    .input-group .icon {
        width: 10.13px;
        height: 10px;
        color: var(--basic_color);
        font-size: 1rem;
        margin-right: 0;
        line-height: 1;
    }

        .input-group .icon img {
            width: 10.13px;
            height: 10px;
            margin: 0px;
            margin-bottom: 7px;
        }

    .input-group input,
    .input-group textarea {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        color: var(--basic_color);
        font-size: 0.75rem;
        padding: 2px 0;
        line-height: 1.2;
        margin-left: 5px;
    }

        .input-group input::placeholder,
        .input-group textarea::placeholder {
            color: var(--basic_color);
            font-size: 0.75rem;
            font-family: var(--FONT-FAMILY);
        }

        .input-group textarea::placeholder {
            padding-top: 8px;
        }

.icon-textarea {
    width: 10.13px;
    height: 10px;
    margin-top: -26px;
}

    .icon-textarea img {
        width: 10.13px;
        height: 10px;
        margin-bottom: 7px;
    }

.input-group textarea {
    resize: none;
    height: 60px;
}

.submit-button {
    width: 131.69px;
    height: 35px;
    max-height: 35px;
    background-color: var(--basic_color);
    color: var(--caveat-color);
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background-color: #ffd1d1;
}

.no-scroll {
    overflow: hidden;
}

.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    animation: fadeOut 0.3s forwards;
}

.modal-content {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("../images/xsmall\ bg\ \(1\).webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    color: var(--basic_color);
    width: 360px;
    height: 500px;
    position: relative;
    text-align: center;
    box-shadow: none;
    z-index: 1100;
    transform: scale(0.8);
    animation: scaleUp 0.3s forwards;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.8s forwards;
    visibility: visible;
    opacity: 1;
}

.modal-content.open {
    transform: scale(1);
    animation: scaleUp 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
    }

    to {
        transform: scale(1);
    }
}

@keyframes scaleDown {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(0.8);
    }
}

.close-modal-btn {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    color: var(--basic_color);
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
}

    .close-modal-btn:hover {
        color: #ccc;
    }

.modal_mapScreen {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.modal_mapScreen-content {
    width: 95.83%;
    height: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

    .modal_mapScreen-content iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 10px;
    }

body.modal-open {
    overflow: hidden;
}

@media (min-width: 576px) {
    .contact-form {
        margin-top: 50px;
        justify-content: start;
        width: 520.02px;
        height: 482.15px;
        padding: 10px;
    }

        .contact-form h2 {
            height: 70.56px;
            width: 320.02px;
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 30.24px;
        }

        .contact-form p {
            font-size: 1.125rem;
            line-height: 21.78px;
        }

    .customer_enquiry {
        gap: 20px;
        overflow: visible;
        align-items: center;
        width: 520.02px;
        height: 482.15px;
    }

    .input-group {
        width: 431.01px;
        align-items: flex-start;
    }

    #user_query_textfield {
        height: 190px;
        display: flex;
        justify-content: flex-start;
    }

    #customer_message {
        height: 190px;
    }

    .input-group .icon {
        width: 24.44px;
        height: 25px;
    }

        .input-group .icon img {
            width: 24.44px;
            height: 25px;
        }

    .input-group input,
    .input-group textarea {
        font-size: 1.25rem;
        padding: 2px 0;
        line-height: 1.2;
        margin-left: 5px;
    }

        .input-group input::placeholder,
        .input-group textarea::placeholder {
            font-size: 1.25rem;
        }

        .input-group textarea::placeholder {
            padding-top: 3px;
        }

    .icon-textarea {
        width: 24.44px;
        height: 25px;
        margin-bottom: 60px;
    }

        .icon-textarea img {
            width: 24.44px;
            height: 25px;
            margin: 0;
            margin-top: 30px;
        }

    .input-group textarea {
        resize: none;
        height: 120px;
    }

    .submit-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 212.38px;
        height: 51.74px;
        border-radius: 10px;
        font-size: 1.25rem;
        line-height: 25.2px;
        border: none;
        margin-top: 0px;
        padding: 10px;
        box-sizing: border-box;
        opacity: 1;
        overflow: visible;
        position: relative;
    }

    .modal-overlay {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .modal-content {
        flex-direction: column;
        justify-content: start;
        align-items: center;
        background-image: url("../images/above576_bg.webp");
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
        width: 600px;
        height: 800px;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes fadeOut {
        from {
            opacity: 1;
        }

        to {
            opacity: 0;
        }
    }

    @keyframes scaleUp {
        from {
            transform: scale(0.8);
        }

        to {
            transform: scale(1);
        }
    }

    @keyframes scaleDown {
        from {
            transform: scale(1);
        }

        to {
            transform: scale(0.8);
        }
    }

    .close-modal-btn {
        top: 20px;
        right: 20px;
        background: none;
        color: var(--basic_color);
        font-size: 1.5rem;
        border: none;
        cursor: pointer;
    }
}

@media (min-width: 992px) {
    .input-group .icon {
        padding: 0px;
    }
}

@media (min-width: 1200px) {
    .input-group input,
    .input-group textarea {
        margin-left: 10px;
    }

        .input-group input::placeholder,
        .input-group textarea::placeholder {
            font-size: 1.25rem;
        }

        .input-group textarea::placeholder {
            padding-left: 0px;
        }
}
