.hero {
    padding: 20px 20px 40px 20px;
    background: #0E1A28;
}

.herosubtitle {
    padding-top: 20px;
    font-family: "inter-18pt";
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
}

.herotitle {
    font-family: "inter-18pt";
    font-size: 70px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
    width: 40%;
    line-height: 70px;
}

.herotitletwo {
    font-family: "inter-18pt";
    font-size: 70px;
    color: #D4571E;
    font-weight: 700;
    letter-spacing: 2px;
    width: 40%;
    line-height: 70px;
}

.herodis {
    font-family: "inter-18pt";
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    width: 90%;
    padding-top: 20px;
}

.herodivision {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin-top: 30px;
}

.heroemail {
    color: #D4571E;
    font-family: "inter-18pt";
    font-size: 20px;
    padding-top: 20px;
    font-weight: 600;
}

.herolocation {
    color: rgba(255, 255, 255, 0.8);
    font-family: "inter-18pt";
    font-size: 15px;
}

.opportunitymarquee {
    display: inline-block;
    white-space: nowrap;
    padding: 15px 0;
    animation: marquee 20s linear infinite;
    font-family: 'inter-18pt';
    color: #ffffff;
    font-size: 14px;
    background: #0E1A28;
}

.contactfrom {
    padding: 20px;
    background: #F2EDE6;
}

.contactfromsubtitle {
    padding-top: 20px;
    font-family: "inter-18pt";
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.8);
}

.contactfromtitle {
    font-family: "inter-18pt";
    font-size: 35px;
    color: #000000;
    font-weight: 700;
    letter-spacing: 2px;
    width: 70%;
    line-height: 35px;
    padding-top: 10px;
}

.contactfromdis {
    font-family: "inter-18pt";
    font-size: 16px;
    color: rgba(0, 0, 0, 0.6);
    width: 90%;
    padding-top: 20px;
    padding-bottom: 20px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#contact-form input, #contact-form select, #contact-form textarea {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: #000000 solid 1.5px;
    background: none;
    padding-bottom: 5px;
}

.imputtitlewrapper {
    display: flex;
    gap: 5px;
}

.contact-form-imput-title {
    font-family: "inter-18pt";
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding-top: 10px;
}

.contact-form-imput-title-optional {
    font-family: "inter-18pt";
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.5px;
    padding-top: 10px;
    color: rgba(0, 0, 0, 0.6);
}

input::placeholder,
textarea::placeholder {
    font-family: "inter-18pt";
    font-size: 14px;
    font-weight: 400;
    opacity: 1;
}

#contact-form button {
    background: #D4571E;
    border: none;
    width: 100%;
    padding: 20px;
    color: #ffffff;
    font-family: "inter-18pt";
    font-size: 16px;
    font-weight: 600;
}

.contact-form-button-text {
    font-family: "inter-18pt";
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    color: #D4571E;
}

.contactus {
    padding: 40px 20px;
    position: relative;
    background: #D4571E;
    overflow: hidden;
}

.contactuscircle {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: pink;
    opacity: 0.1;

    top: -135px;
    left: -50px;
}

.contactusdis {
    font-family: "inter-18pt";
    font-size: 50px;
    color: #0E1A28;
    margin-top: 10px;
    font-weight: 700;
    width: 80%;
    line-height: 55px;
}

.contactuscirclebottom {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.04;

    bottom: -135px;
    right: -50px;
}

#thank-you {
    padding: 60px 20px;
    background: #F2EDE6;
}

.thank-you-subtitle {
    font-family: "inter-18pt";
    font-size: 12px;
    letter-spacing: 1px;
    color: rgba(0, 0, 0, 0.6);
}

.thank-you-title {
    font-family: "inter-18pt";
    font-size: 55px;
    line-height: 55px;
    color: #0E1A28;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 10px 0 0 0;
}

.thank-you-dis {
    font-family: "inter-18pt";
    font-size: 17px;
    line-height: 25px;
    color: rgba(0, 0, 0, 0.65);
    width: 90%;
    margin: 20px 0 0 0;
}

.thank-you-line {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.25);
    margin: 35px 0 20px 0;
}

.thank-you-small {
    font-family: "inter-18pt";
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.6);
    margin: 0 0 20px 0;
}

.thank-you-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background: #D4571E;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-family: "inter-18pt";
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (min-width: 650px) and (max-width: 1023px) {

    /* ==========================================================================
       CONTACT HERO SECTION
       ========================================================================== */
    .hero {
        padding: 40px 40px 60px 40px;
    }

    .herosubtitle {
        padding-top: 10px;
        font-size: 13px;
    }

    .herotitle, .herotitletwo {
        font-size: 86px;
        line-height: 82px;
        letter-spacing: -1px;
        width: 100%; /* Lets text scale naturally on tablet windows */
    }

    .herotitle {
        margin-top: 15px;
    }

    .herodis {
        font-size: 18px;
        line-height: 26px;
        width: 75%;
        padding-top: 25px;
    }

    .herodivision {
        margin-top: 35px;
    }

    .heroemail {
        font-size: 24px;
        padding-top: 25px;
    }

    .herolocation {
        font-size: 16px;
        padding-top: 5px;
    }

    /* ==========================================================================
       OPPORTUNITY MARQUEE RUNNING BANNER
       ========================================================================== */
    .opportunitymarquee {
        padding: 18px 0;
        font-size: 15px;
    }

    /* ==========================================================================
       START A PROJECT INPUT FORM
       ========================================================================== */
    .contactfrom {
        padding: 60px 40px;
    }

    .contactfromsubtitle {
        padding-top: 0;
        font-size: 13px;
    }

    .contactfromtitle {
        font-size: 45px;
        line-height: 48px;
        width: 85%;
        padding-top: 15px;
    }

    .contactfromdis {
        font-size: 17px;
        line-height: 25px;
        width: 80%;
        padding-top: 20px;
        padding-bottom: 30px;
    }

    #contact-form {
        gap: 15px;
    }

    #contact-form input, #contact-form select, #contact-form textarea {
        padding-bottom: 8px;
        font-size: 16px;
    }

    .contact-form-imput-title, 
    .contact-form-imput-title-optional {
        font-size: 13px;
        padding-top: 15px;
    }

    /* ==========================================================================
       SUBMIT ACTION CONTAINER
       ========================================================================== */
    #contact-form button {
        padding: 20px;
        font-size: 17px;
        margin-top: 15px;
    }

    .contact-form-button-text {
        font-size: 13px;
        margin-top: 10px;
    }

    /* ==========================================================================
       BOTTOM BRAND QUOTE BANNER
       ========================================================================== */
    .contactus {
        padding: 80px 40px;
    }

    .contactuscircle {
        width: 450px;
        height: 450px;
        top: -200px;
        left: -100px;
    }

    .contactusdis {
        font-size: 64px;
        line-height: 68px;
        width: 90%;
        margin-top: 0;
    }

    /* ==========================================================================
       EMAILJS SUCCESS STATE (THANK YOU PANEL)
       ========================================================================== */
    #thank-you {
        padding: 80px 40px;
    }

    .thank-you-title {
        font-size: 72px;
        line-height: 72px;
    }

    .thank-you-dis {
        font-size: 18px;
        line-height: 27px;
        width: 80%;
    }

    .thank-you-button {
        width: 50%; /* Prevents back-to-home button from spreading full width on tablet */
        max-width: 320px;
        padding: 18px;
    }
}

@media (min-width: 1024px) {

    /* ==========================================================================
       1. CONTACT HERO SECTION (Vertical layout stack with balanced padding)
       ========================================================================= */
    .hero {
        padding: 80px 70px 70px 70px; /* Aligns padding perfectly with your other desktop pages */
    }

    .herosubtitle {
        padding-top: 0;
        font-size: 14px;
        letter-spacing: 2px;
    }

    .herosubtitletwo {
        padding-top: 0;
        font-size: 14px;
        letter-spacing: 2px;
        padding-left: 12px;
    }

    .herotitle, .herotitletwo {
        font-size: 75px;        /* Premium signature brutalist headline size */
        line-height: 80px;      
        letter-spacing: -2px;
        width: 100%;             
        margin: 0;
    }

    .herotitle {
        margin-top: 20px;
    }

    .herodis {
        font-size: 20px;
        line-height: 32px;
        width: 60%;
        max-width: 850px;        
        padding-top: 25px;
    }

    .herodivision {
        width: 100%;
        margin-top: 50px;
    }

    .heroemail {
        font-size: 20px;
        padding-top: 25px;
    }

    .herolocation {
        font-size: 17px;
        padding-top: 8px;
    }

    /* ==========================================================================
       2. OPPORTUNITY MARQUEE RUNNING BANNER
       ========================================================================== */
    .opportunitymarquee {
        padding: 22px 0;
        font-size: 16px;
    }

    /* ==========================================================================
       3. START A PROJECT INPUT FORM (Perfect 100% Width Side-by-Side Split Grid)
       ========================================================================== */
    .contactfrom {
        padding: 100px 70px; 
    }

    .contactfromsubtitle {
        padding-top: 0;
        font-size: 14px;
        letter-spacing: 2px;
    }

    .contactfromtitle {
        font-size: 56px;
        line-height: 60px;
        width: 100%;
        max-width: 800px;
        padding-top: 15px;
    }

    .contactfromdis {
        font-size: 18px;
        line-height: 28px;
        width: 65%;
        max-width: 850px;        
        padding-top: 15px;
        padding-bottom: 25px;    
    }

    /* Form Grid Master Layout Box */
    #contact-form {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr); 
        gap: 24px;               /* Elegant internal spacing between column blocks */
        row-gap: 15px;           /* Tight vertical margins to minimize page scrolling */
    }

    /* Force your individual fields and labels to stay in their clean 50/50 columns */
    .imputtitlewrapper,
    #contact-form input, 
    #contact-form select {
        grid-column: span 1;
        width: 100% !important;  /* Overrides mobile percentage width restrictions */
        box-sizing: border-box;  /* Prevents padding from causing text to spill past layout lines */
    }

    /* Large text fields and action components stretch seamlessly full-width across rows */
    #contact-form textarea,
    #contact-form button,
    .contact-form-button-text {
        grid-column: 1 / span 2; 
        width: 100% !important;
        box-sizing: border-box;
    }

    #contact-form input, #contact-form select, #contact-form textarea {
        padding-bottom: 8px;    
        font-family: "inter-18pt";
        font-size: 17px;
    }

    .contact-form-imput-title, 
    .contact-form-imput-title-optional {
        font-size: 13px;
        padding-top: 10px;       
    }

    #contact-form button {
        padding: 22px;           
        font-size: 17px;
        font-weight: 700;
        margin-top: 15px;
        cursor: pointer;
    }

    .contact-form-button-text {
        font-size: 13px;
        margin-top: 8px;
    }

    /* ==========================================================================
       4. BOTTOM BRAND QUOTE BANNER
       ========================================================================== */
    .contactus {
        padding: 120px 70px;
    }

    .contactuscircle {
        width: 550px;
        height: 550px;
        top: -250px;
        left: -120px;
    }

    .contactusdis {
        font-size: 86px;         
        line-height: 92px;
        width: 85%;
        max-width: 1100px;
        margin-top: 0;
    }

    /* ==========================================================================
       5. EMAILJS SUCCESS STATE (THANK YOU CENTERING)
       ========================================================================== */
    #thank-you {
        padding: 120px 70px;
    }

    .thank-you-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .thank-you-title {
        font-size: 96px;
        line-height: 96px;
        letter-spacing: -1px;
    }

    .thank-you-dis {
        font-size: 20px;
        line-height: 30px;
        width: 55%;
        max-width: 700px;
        margin-top: 25px;
    }

    .thank-you-line {
        margin: 40px 0 20px 0;
    }

    .thank-you-small {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .thank-you-button {
        width: 100%;
        max-width: 320px;
        padding: 20px;
        font-size: 15px;
        cursor: pointer;
    }
}
