/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/

#gform_wrapper_1 { margin: 0; }
.gfield { border: 1px solid var(--accent-color); border-radius: 0.3rem; overflow: hidden !important; background: var(--white); line-height: normal; }
.gfield:focus-within { outline: 2px auto -webkit-focus-ring-color; }
.gfield .gfield_label.gform-field-label { color: var(--accent-color); font-weight: normal; font-size: 0.7rem; margin-bottom: 0; padding-left: 0.6rem; }
.gfield .medium, .gfield .large { padding: 0 0.6rem 0.35rem !important; color: var(--content-color); background: var(--white); outline: none; border: 0 !important; }
.gform_footer { position: relative; margin-top: 0.7rem; }
.gform_footer { justify-content: center; }
.gform_button { transition: color 0.3s, background-color 0.3s; margin: 0.9rem auto 0; }
.gform_ajax_spinner { position: absolute; top: 0; right: 0.5rem; bottom: 0; margin: auto; border: 0.2em solid rgba(0, 0, 0, 0.4); border-left: 0.2em solid #07B084; border-radius: 50%; width: 1.2em; height: 1.2em; animation: spin 1.1s infinite linear; }
.gform_confirmation_message { font-family: inherit; font-size: 1.1em; font-weight: normal; }
.gform_fileupload_rules { padding: 0 1rem 1rem; font-style: italic; }

/* Validation styling */ 
.gform_wrapper .gform_validation_errors .gform_submission_error { border: none; margin: 0; }
.gform_validation_errors p { margin: 0; }
.gfield_error { border-color: #c02b0a; }
.gfield_validation_message { border-left: none !important; border-right: none !important; border-bottom: none !important; }
.gform_required_legend, #contact_section .sidebar-form-content { display: none; }

/* Full width contact form */ 
.wp-block-template-part:has(#contact_section) { margin-top: 0; }
#contact_section {--contain-padding: clamp(var(--mobile-padding, 1rem), calc(50vw - 20rem), 26.3rem);padding-top: clamp(2rem, 10.8vw, 7.1rem);padding-bottom: clamp(2.6rem, 9.5vw, 6.25rem);}
#contact_section .wp-block-cover__inner-container {background: rgba(255,255,255,0.9);padding: clamp(1.2rem,4.1vw,2.7rem) clamp(1.2rem, 10vw, 7.5rem) 3.25rem;}
#contact_section .gform_title {text-align: center;margin: 0 0 0;}
#contact_section .gform_description { font-size: clamp(0.7rem, 3vw, 0.9rem); }
#contact_section .contact-emergency { display: block; margin-bottom: 1rem; }

@media (prefers-reduced-motion:no-preference) { 
	#contact_section .wp-block-cover__inner-container { opacity: 0; transform: translateY(2rem); transition: transform 0.6s, opacity 0.6s; }
	#contact_section.js-intersected .wp-block-cover__inner-container { opacity: 1; transform: translateY(0); }
}

/* HIPAA Demo */
#gform_3 {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.gform-body.gform_body {
    padding: 1rem 2rem;
    box-shadow: 0 0px 8px rgba(128, 128, 128, 0.5);
}
#field_3_32,
#field_3_28 {
    position: relative;
    margin-left: -1rem;
}
.top-header-forms {
    padding-left: 1rem;
}
#field_3_32::before,
#field_3_28::before {
    content: '';
    background-image: url(https://merisanenthealth.fm1.dev/wp-content/uploads/2025/06/green-elipse.svg);
    background-repeat: no-repeat;
    position: absolute;
    width: 0.6rem;
    height: 0.6rem;
    top: 2.6rem;
    left: 0rem;
}
.gform_fields.top_label .gfield--input-type-html {
    border: none;
    color: #231F20;
    font-size: clamp(1.6rem, 3vw, 1.8rem);
}
.name_first .gform-field-label,
.name_last .gform-field-label {
    visibility: hidden;
}
.ginput_container_address span {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.5rem;
}
.address_line_1.ginput_address_line_1,
.address_line_2.ginput_address_line_2 {
    max-width: 50%;
}
.address_city.ginput_address_city,
.address_state.ginput_address_state,
.address_zip.ginput_address_zip {
    max-width: 25%;
}
.page-id-3379 #field_3_20 {
    font-weight: 700;
    font-size: 1rem;
}
.page-id-3379 .gfield.gfield--type-select,
.page-id-3379 .gfield.gfield--type-text.gfield--input-type-text,
#field_3_20,
#field_3_27 {
    border: none;
}
.half-width {
    max-width: 50%;
}
.page-id-3379 .gfield {
    color: #000000;
    border: 1px solid #848484;
    border-radius: 2px;
}
.page-id-3379 .gfield .gfield_label.gform-field-label {
    color: #000000;
    font-weight: 400;
}
.page-id-3379 .ginput_container.ginput_container_text,
.page-id-3379 .ginput_container.ginput_container_select {
    color: #000000;
    border: 1px solid #848484;
    border-radius: 1px;
}
.page-id-3379 .gform_next_button.gform-theme-button.button,
.page-id-3379 .gform_previous_button {
    width: 10.4rem;
    padding: 0.5rem 1rem;
    border: none;
    font-size: clamp(1rem, 3vw, 1.1rem);
}
.hipaa-image-wrapper {
    text-align: center;
}
.page-id-3379 .gform_previous_button.gform-theme-button.gform-theme-button--secondary.button {
    background-color: #EEEEEE;
    color: #152C40;
}
.page-id-3379 .gform_previous_button.gform-theme-button.gform-theme-button--secondary.button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}
#gform_page_3_1 .gform-page-footer.gform_page_footer.top_label {
    text-align: center;
}
#gform_page_3_2 .gform-page-footer.gform_page_footer.top_label {
    text-align: start;
}
.page-id-3379 #contact_section {
    display: none;
}
@media only screen and (min-width: 68.5em) {
    .gform-body.gform_body {
        padding: 2rem 7rem;
    }
}
