/* contact - HERO */
.contact-hero {
    height: 600px;
    width: 100%;
    position: relative;
    user-select: none;
}

.contact-hero img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.contact-hero-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    background: linear-gradient(to right, rgba(128, 128, 128, 0.718) 40%, transparent);
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 10% 0 10%
}

.contact-hero-overlay-content {
    background-color: rgba(255, 255, 255, 0.909);
    width: fit-content;
    padding: 40px 20px;
    border-radius: 10px;
}

.contact-hero-overlay-content h1 {
    color: var(--main-blue-dark);
    width: fit-content;
    border-radius: 50px 0 0 50px;
    font-size: 50px;
    margin: 0 0 20px 0;
    line-height: 50px;
}

.contact-hero-overlay-content p {
    font-size: 20px;
    font-weight: 600;
    color: rgb(101, 101, 101);
    margin: 0 0 20px 0;
    max-width: 800px;
}

/* CONTACT - MAIN */
/* CONTACT - SIDEMENU */

.contact-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    height: fit-content;
}

.contact-wrapper-menu {
    position: sticky;
    top: 0%;
    width: 400px;
    height: 100vh;
    padding: 0px 20px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 20px;
    align-items: center;
    z-index: 2;
    box-sizing: border-box;
}

.contact-wrapper-menu .underline {
    width: 100px;
    margin: 0 auto 0 auto;
}

.contact-info, .hours-of-operation {
    margin-top: 0px;
    text-align: center;
}

.contact-info p, .hours-of-operation p {
    margin: 5px 0;
    color: black;
    font-size: 14px;
}

.contact-info strong, .hours-of-operation strong {
    display: block;
    font-size: 16px;
    color: black;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hours-of-operation .contact-day {
    font-weight: 700;
    margin: 0 0 0px 0;
}

.contact-info a, .hours-of-operation a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover, .hours-of-operation a:hover {
    text-decoration: underline;
}

.contact-wrapper-menu .hours-of-operation {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.contact-wrapper-menu iframe {
    width: 300px;
    height: 240px;
}

@media (max-width: 1600px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-wrapper-menu {
        position: static;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
        padding-bottom: 40px;
        padding-top: 30px;
    }

    .contact-wrapper-menu .underline {
        width: initial;
    }
}

/* FORM TEMPLATE */

.form-background {
    flex-grow: 1;
    background: url(/imageserver/UserMedia/texasroofmasters/background.jpeg);
    background-position: center;
    background-size: cover;
}

/* OUTSIDE FORM */
.form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(255, 255, 255, 0.831), #f7f7f79b);
    padding: 30px 0;
}

.form-wrapper h2 {
    margin: 10px 0px;
}

.form-wrapper h4 {
    margin: 10px 0px;
}

/* FORM */
.form-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 500px;
    max-width: 90vw;
    row-gap: 40px;
    padding: 20px 0px;
    position: relative;
}

/* FORM OVERLAY */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--form-overlay);
    backdrop-filter: blur(0.5px);
    display: none;
}

/* FORM ROW */
.form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* FORM LABEL */
.form-row label {
    font-weight: 600;
    text-align: left;
    width: 80%;
}

.form-row:has(input[required]) label::after {
    content: " - Required";
    color: var(--main-blue-dark);
    font-size: 12px;
    display: inline;
}

/* FORM INPUT, SELECT & TEXTAREA */
.form-row input, .form-row select, .form-row textarea {
    border: solid 4px var(--main-blue-dark);
    padding: 5px;
    font-family: inherit;
    width: 80%;
    outline: none;
    transition: all 0.2s linear;
    border-radius: 20px;
    background-color: transparent;
    font-size: 18px;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border: solid 4px gray;
    background-color: white;
}

/* FORM CHECKBOX */
.form-row .checkbox-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin-top: 10px;
}

.form-row .checkbox-row label {
    font-weight: normal;
}

.form-row .checkbox-row input[type="checkbox"] {
    width: 30px;
    height: 30px;
}

/* FORM TEXTAREA */
.form-row textarea {
    resize: none;
    height: 150px;
}

/* FORM #ERRORLABEL */
#error-label {
    color: var(--main-blue-dark);
    margin: 0 0 -30px 0;
    visibility: hidden;
    min-height: 12px;
}