.modal-contact {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(32 32 32 / 65%);
    z-index: 10000005;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.modal-contact form {
    margin: 0 auto;
}

.modal-contact .modal-contact-inner {
    border-radius: 10px;
    max-width: 1000px;
    width: 95%;
    box-shadow: 0 10px 40px rgba(44, 85, 48, 0.18);
    position: relative;
    padding: 50px 28px 50px 28px;
    background-image: url(/assets/default/img/contact-bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 40px auto; /* Added margin for mobile breathing room */
}

.modal-contact .close-modal-contact {
    position: absolute;
    top: 12px;
    right: 13px;
    background: none;
    border: none;
    font-size: 22px;
    color: #2C5530;
    cursor: pointer;
    z-index: 10;
}

.modal-contact h2 {
    margin-bottom: 10px;
    font-size: 41px;
    font-weight: 600;
    color: #004923;
    text-align: center;
    text-transform: uppercase;
}

.modal-contact p {
    text-align: center;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    color: #000000;
    font-size: 19px;
    margin-top: 5px;
    padding: 0 25px;
    margin-bottom: 29px;
}

.modal-contact .modal-contact-form-group {
    margin-bottom: 15px;
}

.modal-contact label {
    font-weight: 500;
    color: #2C5530;
}

.modal-contact #contactFormResult {
    margin-top: 15px;
    font-size: 1em;
    text-align: center;
}

/* Contact Section Styles */
.modal-contact .contact-section {
    position: relative;
    width: 100%;
    min-height: 813px;
    overflow: hidden;
    background-image: url(../../img/contact-bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.modal-contact .contact-container {
    position: relative;
    width: 100%;
    max-width: 1926px;
    margin: 0 auto;
    min-height: 813px;
}

.modal-contact .contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../img/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    transition: transform 0.8s ease;
}

.modal-contact .contact-section:hover .contact-background {
    transform: scale(1.02);
}

.modal-contact .contact-content {
    position: relative;
    z-index: 2;
    padding: 70px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 813px;
    width: 100%;
    box-sizing: border-box;
}

.modal-contact .contact-title {
    font-size: 41px;
    font-weight: 600;
    color: #004923;
    text-align: center;
    text-transform: uppercase;
    word-break: break-word;
}

.modal-contact .contact-description {
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    leading-trim: both;
    text-edge: cap;
    text-align: center;
    color: #000000;
    margin-bottom: 40px;
    margin-top: 15px;
    word-break: break-word;
}

.modal-contact .contact-form {
    width: 100%;
    max-width: 853px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
}

.modal-contact .form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.modal-contact .form-group {
    flex: 1;
    position: relative;
}

.modal-contact .form-group.full-width {
    flex: 1 1 100%;
}

/* Inputs and Textareas: responsive sizing */
.modal-contact .contact-form input,
.modal-contact .contact-form textarea {
    width: 100%;
    height: 75px;
    padding: 20px 30px;
    border: 2px solid transparent;
    border-radius: 5px;
    background-color: #ffffff;
    font-size: 20px;
    color: #000000;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    resize: none !important;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    position: relative;
}

.modal-contact .contact-form input:hover,
.modal-contact .contact-form textarea:hover {
    border-color: rgba(192, 151, 54, 0.3);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 3px rgba(192, 151, 54, 0.1);
    transform: translateY(-1px);
}

.modal-contact .contact-form input::placeholder,
.modal-contact .contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-size: 20px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.modal-contact .contact-form textarea {
    height: 240px;
    resize: vertical;
    font-family: inherit;
    min-height: 100px;
}

.modal-contact .contact-form input:focus,
.modal-contact .contact-form textarea:focus {
    outline: none;
    border-color: #C09736;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(192, 151, 54, 0.2);
    transform: translateY(-3px);
    background-color: #fafafa;
}

/* Submit btn */
.modal-contact .form-submit {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.modal-contact .submit-btn {
    background-color: #C09736;
    color: #ffffff;
    border-radius: 300px;
    padding: 20px 40px;
    font-size: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    white-space: normal;
    text-align: center;
    word-break: break-word;
}

.modal-contact .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.modal-contact .submit-btn:hover {
    background-color: white;
    color: #C09736;
    border: 2px solid;
}

.modal-contact .submit-btn:hover::before {
    left: 100%;
}

.modal-contact .submit-btn:active {
    transform: translateY(-1px);
    transition: transform 0.1s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modal-contact .modal-contact-inner {
        max-width: 95vw;
        padding: 40px 12px 40px 12px;
    }
    .modal-contact .contact-form {
        max-width: 95vw;
    }
}

@media (max-width: 900px) {
    .modal-contact .modal-contact-inner {
        max-width: 98vw;
        padding: 32px 6vw 32px 6vw;
    }
    .modal-contact .contact-title {
        font-size: 28px;
    }
    .modal-contact .contact-description {
        font-size: 18px;
        padding: 0 8vw;
        margin-bottom: 26px;
    }
    .modal-contact .contact-form {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .modal-contact h2{

font-size: 26px;
        
margin-bottom: 5px;
    }
    .modal-contact p{
        
    }
    .modal-contact {
        min-width: 0;
        min-height: 0;
        padding: 0;
    }

    .modal-contact .modal-contact-inner {
        max-width: 99vw;
        min-width: 0;
        width: 98vw;
        padding: 24px 0 24px 0;
        box-shadow: 0 6px 20px rgba(44, 85, 48, 0.10);
        margin: 20px auto;
    }
    .modal-contact .contact-content {
        padding: 15px 3vw;
        min-height: unset;
    }

    .modal-contact .contact-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .modal-contact .contact-description {
        font-size: 15px;
        margin-top: 8px;
        padding: 0 4vw;
        margin-bottom: 12px;
    }

    .modal-contact .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .modal-contact .contact-form,
    .modal-contact .contact-form input,
    .modal-contact .contact-form textarea {
        width: 100%;
        box-sizing: border-box;
    }

    .modal-contact .contact-form input,
    .modal-contact .contact-form textarea {
        height: 50px;
        padding: 12px 9px;
        font-size: 14px !important;
    }

    .modal-contact .contact-form textarea {
        height: 100px;
        min-height: 50px;
        max-height: 210px;
    }

    .modal-contact .submit-btn {
        min-width: 110px;
        height: 38px;
        font-size: 14px;
        padding: 10px 12px;
    }

    .modal-contact .submit-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(192, 151, 54, 0.28);
    }

    .modal-contact .contact-form {
        gap: 9px;
    }
}

@media (max-width: 480px) {
    .modal-contact .modal-contact-inner {
        padding: 42px 15px;
        max-width: 100vw;
        margin: 8px 10px;
    }

    .modal-contact .close-modal-contact {
        top: 6px;
        right: 8px;
        font-size: 18px;
    }
    .modal-contact .contact-title {
        font-size: 18px;
    }
    .modal-contact .contact-description {
        font-size: 13px;
        padding: 0 10px;
    }
}

@media (max-width: 370px) {
    .modal-contact .contact-content,
    .modal-contact .modal-contact-inner {
        padding-left: 15px;
        padding-right: 15px;
    }
    .modal-contact .contact-description {
        font-size: 11px;
        padding: 0 2px!important;
    }
}