/* ==========================================================================
   Request Information Form
   ========================================================================== */

.blinn-request-form {
    width: 100%;
}

.web-form-wrapper-program-page {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 2rem;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

.webform {
    position: relative;
    top: 0 !important;
    padding: 2rem;
    background: #f5f7f9;
    border-radius: 0.375rem;
}


/* ==========================================================================
   Form Layout
   ========================================================================== */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.form-field {
    min-width: 0;
}

.form-field--full {
    grid-column: 1 / -1;
}


/* ==========================================================================
   Labels
   ========================================================================== */

.form-field label,
.form-field legend {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    color: #212529;
    background-color: transparent;
}


/* ==========================================================================
   Inputs, Selects and Textarea
   ========================================================================== */

.form-field input:not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.form-field select,
.form-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cfd6de;
    border-radius: 0.375rem;
    background-color: #fff;
    background-repeat: no-repeat;
    font: inherit;
    font-size: 1rem;
}

.form-field input:not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.form-field select {
    height: 2.75rem;
}

.form-field textarea {
    min-height: 7rem;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid #0a5bd8;
    outline-offset: 2px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #6c757d;
    opacity: 1;
}

.email::placeholder {
    text-transform: none;
}


/* ==========================================================================
   Select Placeholder Appearance
   ========================================================================== */

.form-field select:required:invalid,
#manual-state:required:invalid {
    color: #6c757d;
}

.form-field select option,
#manual-state option {
    color: #000;
}


/* ==========================================================================
   Google Places
   ========================================================================== */

#place-autocomplete-container {
    width: 100%;
    grid-column: 1 / -1;
}

#place-autocomplete-container gmp-place-autocomplete {
    display: block;
    width: 100%;
    border: 1px solid #cfd6de;
    border-radius: 0.375rem;
}

#place-autocomplete-container.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}


















/* ==========================================================================
   Address Error / Manual Fallback
   ========================================================================== */

.blinn-request-form #address-not-found-message[hidden],
.blinn-request-form .manual-address-toggle[hidden],
.blinn-request-form .manual-address-fields[hidden] {
    display: none;
}

.blinn-request-form #address-not-found-message {
    display: inline;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #b42318;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
}

.blinn-request-form .manual-address-toggle {
    display: inline;
    /*margin: 0 0 0 0.25rem;*/
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: underline;
}

.blinn-request-form .manual-address-toggle:hover {
    text-decoration-thickness: 2px;
}

.blinn-request-form .manual-address-toggle:focus-visible {
    outline: 2px solid #0a5bd8;
    outline-offset: 3px;
}














/* ==========================================================================
   Manual Address Fields
   ========================================================================== */

.manual-address-fields {
    margin-top: 1rem;
}

.manual-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}


/* ==========================================================================
   Radio Buttons
   ========================================================================== */

.blinn-request-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.radio-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.radio-group input[type="radio"] {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
}

.radio-group label {
    display: inline;
    margin: 0 1rem 0 0;
    font-weight: 400;
}


/* ==========================================================================
   Miscellaneous Form Content
   ========================================================================== */

.form-field p {
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.invalid-feedback {
    margin-top: 0.35rem;
}


/* ==========================================================================
   Submit Button
   ========================================================================== */

.btn-blinn {
    min-height: 2.75rem;
    padding: 0.65rem 1.5rem;
    border: 0;
    background-color: #084b7a;
    color: #fdb813;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}


/* ==========================================================================
   Program Intro / Side-by-Side Layout
   ========================================================================== */

.program-intro-form .web-form-wrapper-program-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.program-intro-copy > :first-child {
    margin-top: 0;
}

.program-intro-copy > :last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Existing Page Overrides
   ========================================================================== */


.webform {
    position: relative;
    top: 0 !important;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 600px) {

    .web-form-wrapper-program-page {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .webform {
        padding: 1.25rem;
    }

    .form-grid,
    .manual-address-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-field--full {
        grid-column: auto;
    }

    .radio-group {
        align-items: flex-start;
    }

}