﻿body, html {
    font-family: 'Inter', 'Roboto', 'San Francisco', 'Segoe UI', 'Poppins', 'Fira Sans', 'Noto Sans', 'Source Sans Pro', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

html {
    position: relative;
    min-height: 100%;
}

.split-div {
    width: 50%;
    height: 100%;
    float: left;
    box-sizing: border-box;
}


.image-div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('../img/contact-back-lines.png');
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    z-index: 2; /* This will be on top of the gradient div */
}

.right-div-parent { /* You'd replace this with the actual parent's selector */
    display: flex;
    align-items: center; /* This will vertically center .right-div */
    height: 100%; /* Make sure the parent has a height */
    padding-left: calc(.25vw);
    background-image: url('../img/contact-right-back.png');
    background-repeat: no-repeat;
    background-position: right;
    background-size: cover;
}

.right-div {
    padding-left: 125px; /* Horizontal padding */
    max-width: 350px;
}



.fieldset-container {
    border: 1px solid #a9b1b7;
    border-radius: 10px !important;
    font-size: .75em; /* Increasing the font size */
    padding: 5px 1px 5px 2px !important;
    flex: 3 !important;
    flex-basis: 65% !important;
    background-color: #ffffff;
    padding-left: 15px !important;
    margin-top: 25px;
    flex: 1; /* Each fieldset will take up equal space within its container */
    margin: 10px 10px; /* Add some margin for spacing */
}

.fieldset-error {
    border: 1px solid red !important;
    color: red !important;
}

fieldset {
    border: 1px solid #a9b1b7 !important;
    border-radius: 10px !important;
    padding: 20px !important;
}

.borderless-textbox {
    width: 100%; /* Takes up the full width of its parent */
    border: none;
    outline: none;
    font-size: 1.25em;
    box-sizing: border-box; /* Include padding and border in the element's total width */
    padding: 0 10px; /* Add 10px padding to the right */
    background-color: white !important;
    -webkit-appearance: none;
}

    .borderless-textbox:focus {
        border: none;
        outline: none;
        box-shadow: none;
    }

.extension-field {
    width: 100px !important;
}


.flex-container {
    display: flex;
    height: 100%;
}

.split-div {
    width: 50%;
    height: 100%;
    box-sizing: border-box;
}

.field-group {
    display: flex;
    justify-content: space-between; /* Add space between the fieldsets */
}

.field-group-ext {
    display: flex;
    justify-content: space-between; /* Add space between the fieldsets */
}

    .field-group-ext > .fieldset-container:nth-child(1) {
        flex: 0.7 !important;
        width: 70% !important; /* Explicit width for phone number */
    }

    .field-group-ext > .fieldset-container:nth-child(2) {
        flex: 0.3 !important;
        width: 30% !important; /* Explicit width for extension */
    }



.demo-button-bottom {
    background-color: #373966;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    width: 100%;
    font-size: 16pt;
}

    .demo-button-bottom:hover {
        background-color: #2cb4d2; /* Darker shade for hover */
    }

.section-title {
    font-size: 1.75em;
    text-align: center;
    padding-bottom: 15px;
    color: #373966;
}


.item {
    font-size: .9em;
    display: flex;
    align-items: center; /* Vertically align items in the middle */
    gap: 10px; /* Space between image and text, can be adjusted */
    margin-top: 15px;
    font-weight: normal !important;
    font-family: Arial;
}

.left-div {
    height: auto; /* Ensure the div grows with the content */
    overflow: auto; /* If you still want to restrict the height, but allow scroll when content is too much */
}

.centered-right-div {
    position: relative; /* Reset positioning for mobile views */
    right: auto; /* Reset right value for mobile views */
    width: auto; /* Allow it to take its natural width */
}

.grid-wrapper {
    display: grid;
    grid-template-rows: auto 1fr auto 1fr; /* 4 rows: image row, empty row, content row, empty row */
    height: 100%;
    width: 50%;
    background-image: url('../img/contact-back-lines.png');
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
}

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

.empty-row {
    /* This remains empty and will just take up space. */
}

.content-row {
    display: flex;
    align-items: center; /* This will vertically center .centered-content */
    justify-content: flex-end; /* This will align .centered-content to the right */
    height: 100%;
    padding-right: 125px;
}

.centered-content {
    font-size: 1.7em;
    text-align: left;
    color: #ffffff;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* Drop shadow for text */
    align-content: flex-end;
    height: 100% !important;
    max-width: 600px;
    margin-left: 30px;
}

.left-logo img {
    display: block;
    margin: 50px auto; /* Center the image within its container */
}

.left-logo {
    flex-shrink: 0;
    position: absolute;
    top: 0;
    left: 10%;
    z-index: 1; /* ensures it's behind centered-right-parent */
    
}
@media (max-width: 768px) {

    .flex-container {
        flex-direction: column;
    }

    .grid-wrapper {
        width: 100%;
        padding-top: 125px;
    }

    .image-row,
    .right-div-parent {
        width: 100%;
        display: block;
    }

    .centered-content {
        padding-right: 20px !important;
    }
    .empty-row { /* Add styling for the empty rows */
    }

    .content-row {
        display: block;
        width: 100%; /* Allow it to take its natural width */
        padding-bottom: 25px;
        margin-right: 15px;
    }

    .left-logo img {
        margin: auto; /* Center the image within its container */
        display: block;
    }

    .left-logo {
        display: flex;
        width: 100%;
        margin-top: 20px;
        left: 0;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .right-div {
        padding: 10px;
        max-width: 100%;
        font-size: 1.5em;
    }

    .section-title {
        font-size: 1.5em;
    }

    .demo-button-bottom {
        padding: 14px 24px;
        font-size: 18pt;
        margin-bottom: 20px;
    }

    .borderless-textbox {
        font-size: 1em;
    }

    .fieldset-container {
        font-size: .6em;
    }
}
