body {
    background-image: url('../css/img/bg-texture.png');
    background-size: auto;
    background-position: top left;
    background-repeat: repeat;
    background-attachment: fixed;
    color: #ffffff;
    margin: 0 !important;
    padding: 0 !important;
}


body.contact {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#contact-form-container {
    margin-top: 3%;
    margin-bottom: 3%;
    display: flex;
    justify-content: center;
    max-width: 100%;
    align-items: center;
    margin: 3%;
    padding: 40px 0;
}

#contact-photo{
    display: block;
}

#contact-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    max-width: 600px;
}

#contact-form {
    width: 100%;
    border-radius: 20px;
    padding: 60px 30px 40px 30px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 2px solid rgba(103, 188, 124, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !important;
    position: relative;
}

#contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    height: 4px;
    background: linear-gradient(135deg, #67bc7c 0%, #5aa86b 100%);
    border-radius: 2px;
}

label{
    font-weight: 600 !important;
    color: #ffffff !important;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

#contact-img{
    max-width: 450px;
    border-radius: 20px;
}

.contact-form h1 {
    margin-top: 0;
    font-weight: 400;
}

/* Form Input Styling to match demo modal */
.form-control {
    border-radius: 10px !important;
    border: 2px solid rgba(103, 188, 124, 0.3) !important;
    width: 100% !important;
    margin-bottom: 20px !important;
    height: 50px !important;
    padding: 0 15px !important;
    font-size: 16px !important;
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    outline: none !important;
    border-color: #67bc7c !important;
    box-shadow: 0 0 0 3px rgba(103, 188, 124, 0.1) !important;
    transform: translateY(-1px) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic;
}

textarea.form-control {
    height: 120px !important;
    resize: vertical;
    padding: 15px !important;
}

/* Submit Button Styling */
.btn-os {
    background: linear-gradient(135deg, #67bc7c 0%, #5f8ee8 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 15px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 165px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-os:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(103, 188, 124, 0.3) !important;
}

.btn-os p {
    margin: 0 !important;
    color: white !important;
    text-align: center !important;
    font-family: Troutwood !important;
    font-size: 16px !important;
}


/* Tablet Styles */
@media only screen and (max-width: 1024px) and (min-width: 769px) {
    #contact-form-container {
        margin: 2%;
        padding: 30px 0;
        margin-top: calc(67px + 30px + 2%); /* Account for navbar height + extra spacing */
    }

    #contact-wrapper {
        width: 70%;
        max-width: 500px;
    }

    #contact-form {
        padding: 50px 25px 35px 25px;
    }

    #contact-img {
        max-width: 400px;
    }
}

/* Mobile Landscape */
@media only screen and (max-width: 768px) and (min-width: 481px) {
    #contact-form-container {
        margin: 1%;
        padding: 20px 0;
        margin-top: calc(60px + 25px + 1%); /* Account for navbar height + extra spacing */
    }

    #contact-wrapper {
        width: 85%;
        max-width: 450px;
    }

    #contact-form {
        padding: 40px 20px 30px 20px;
    }

    #contact-img {
        max-width: 0px;
    }

    .form-control {
        height: 45px !important;
        font-size: 15px !important;
    }

    textarea.form-control {
        height: 100px !important;
    }

    .btn-os {
        width: 150px !important;
        height: 55px !important;
        font-size: 15px !important;
    }
}

/* Mobile Portrait */
@media only screen and (max-width: 480px) {
    #contact-form-container {
        margin: 0.5%;
        padding: 15px 0;
        margin-top: calc(55px + 20px + 0.5%); /* Account for navbar height + extra spacing */
    }

    #contact-wrapper {
        width: 95%;
        max-width: 400px;
    }

    #contact-form {
        padding: 30px 15px 25px 15px;
        border-radius: 15px;
    }

    #contact-img {
        max-width: 0px;
    }

    .form-control {
        height: 40px !important;
        font-size: 14px !important;
        padding: 0 12px !important;
    }

    textarea.form-control {
        height: 90px !important;
        padding: 12px !important;
    }

    .btn-os {
        width: 140px !important;
        height: 50px !important;
        font-size: 14px !important;
        padding: 12px 25px !important;
    }

    label {
        font-size: 13px !important;
        margin-bottom: 8px;
    }
}

/* Extra Small Mobile */
@media only screen and (max-width: 320px) {
    #contact-form-container {
        margin-top: calc(50px + 15px + 0.5%); /* Account for navbar height + extra spacing */
    }

    #contact-form {
        padding: 25px 12px 20px 12px;
    }

    .form-control {
        height: 38px !important;
        font-size: 13px !important;
    }

    textarea.form-control {
        height: 80px !important;
    }

    .btn-os {
        width: 130px !important;
        height: 48px !important;
        font-size: 13px !important;
    }
}
