@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@200;300;400;500;700;900&family=Poppins:wght@100;200;300;400;500;600;700&display=swap");

html {
    font-size: 80%;
    /* Prevent white flash on page load */
    background: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.background {
    background: linear-gradient(rgba(134, 134, 134, 0.384), rgba(0, 0, 0, 0.459)),
    url("https://dltb83xt8xjo5.cloudfront.net/images/tbtm-sale-background.webp");
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
}

.container {
    max-width: 800px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 5px 5px 10px rgb(0, 0, 0);
    overflow: hidden;
}

.container .text {
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    background: -webkit-linear-gradient(60deg,
    rgb(255, 94, 0),
    rgb(248, 165, 41));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 1.5rem;
}

.container form {
    padding: 25px 40px 0 40px;
}

.container form .form-row {
    display: flex;
    margin: 30px 0;
}

form .form-row .input-data {
    width: 100%;
    height: 35px;
    margin: 0 20px;
    position: relative;
}

.textarea {
    height: auto !important;
}


.input-data input,
.textarea textarea {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    font-size: 17px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    color: black;
}

#message {
    position: relative;
}

.max-count {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: 15px;
    color: blue;
}

.textarea textarea::-webkit-scrollbar {
    width: 0.8rem;
}

.textarea textarea::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

.textarea textarea::-webkit-scrollbar-thumb {
    background: orange;
    border-radius: 10px;
}

.input-data input:focus ~ label,
.textarea textarea:focus ~ label,
.input-data input:required:valid ~ label,
.textarea textarea:required:valid ~ label,
.input-data input:not(:placeholder-shown) ~ label {
    transform: translateY(-20px);
    font-size: 15px;
    background: -webkit-linear-gradient(60deg,
    rgb(255, 94, 0),
    rgb(248, 165, 41));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.textarea textarea {
    resize: none;
    padding-top: 10px;
}

.input-data label {
    position: absolute;
    pointer-events: none;
    bottom: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.textarea label {
    width: 100%;
    bottom: 98px;
}

.input-data .underline {
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 100%;
}

.input-data .underline:before {
    position: absolute;
    content: "";
    height: 2px;
    width: 100%;
    background: orange;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.input-data input:focus ~ .underline:before,
.input-data input:required:valid ~ .underline:before,
.input-data input:not(:placeholder-shown) ~ .underline:before,
.textarea textarea:focus ~ .underline:before,
.textarea textarea:required:valid ~ .underline:before {
    transform: scaleX(1);
}

.g-recaptcha {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.submit-btn {
    color: #fff;
    display: inline-block;
    background: linear-gradient(60deg, rgba(255, 94, 0, 0.904), rgba(248, 165, 41, 0.904));
    font-size: 22px !important;
    font-weight: 400;
    border-radius: 13px;
    transition: all 0.3s linear;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 10px 10px 5px rgb(0 0 0 / 49%);
    border: 1px solid black;
    -webkit-appearance: none !important;
    opacity: 1 !important;
    padding: 0.5rem 0.5rem !important;
}

.submit-btn:hover {
    color: rgba(0, 0, 0, 0.842);;
    box-shadow: 2px 4px 5px rgb(0 0 0 / 49%) !important;
}

@media (min-width: 1900px) {
    .container {
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .max-count {
        top: 115px;
    }
}

@media (max-width: 700px) {
    .contact-section {
        display: block;
    }

    .container {
        max-width: 600px;
    }

    .container .text {
        font-size: 35px;
    }

    .container form {
        padding: 10px 45px 0 45px;
    }

    .container form .form-row {
        display: block;
    }

    form .form-row .input-data {
        margin: 35px 0 !important;
    }

    .submit-btn {
        align-self: center;
    }
}

@media (max-width: 500px) {
    .container form {
        padding: 10px 30px 0 30px;
    }
}

@media (max-width: 425px) {
    .contact-section {
        padding: 50px 20px;
    }

    .container form {
        padding: 10px 20px 0 20px;
    }

    .submit-btn {
        font-size: 1.1rem;
        padding: 0.45rem 0.7rem;
        border-radius: 13px;
    }

    /* Navigation styles removed - handled in header-footer.css */
}

@media (max-width: 375px) {
    .contact-section {
        padding: 50px 20px;
    }
}

@media (max-width: 320px) {
    .contact-section {
        padding: 50px 10px;
    }
}

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