.row-fluid-wrapper:has(section.theme-section.step-form.step-form-contact) {
    /* margin: var(--content-margin-top) 0 var(--content-margin-bottom) 0; */
}
section.step-form {
    /*
    position: relative;
    overflow: hidden;
    */
}
section.step-form .section-anchor {
    position: relative;
    top: calc(-1 * (var(--header-banner-height) + var(--header-height) - 35px));
}
section.step-form .section-bkgd {
    display: none;
}
section.step-form .section-content {
    /*
    width: var(--content-width);
    margin: 0 auto;
    padding: 115px 0 135px 0;
    */
}

/**
 * STEP FORM CSS FROM CHI
 */
section.step-form .section-content * {
    /* margin: 0; */
    /* padding: 0; */
    /* box-sizing: border-box; */

    /* More CSS resetting from Josh */
    /* background: none; */
}
section.step-form form {
    background: none;
    border: none;
}
.step-form-outer,
section.step-form .section-content {
    font-family: var(--font-sans-serif-stack);
    background-color: transparent;
    color: #333;
    line-height: 1.6;
}
.step-form-inner,
section.step-form .section-content .container {
    /*
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
    */

    position: relative;
    height: 100%;
    padding: var(--content-section-padding-horz);
    background-color: #fff;
    border: 1px solid #bfbfbf;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}
section.step-form .section-content .form-container {
    /*
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    transition: height 0.5s ease;
    */
}
section.step-form .section-content .form-header {
    text-align: center;
    margin-bottom: 30px;
}
section.step-form .section-content .form-header h2 {
    /* font-family: 'Castoro', serif; */
    /* font-size: 32px; */
    /* font-weight: 800; */
    margin-bottom: 2px;
}
section.step-form .section-content .form-header p {
    font-size: 16px;
    color: #555;
}
section.step-form .section-content hr {
    border: none;
    border-top: 1.5px solid #e0e0e0;
    margin: 20px 0;
}
section.step-form .section-content hr.form-step-victim-caregiver-hr {
    margin: 45px 0;
}

/* Progress bar */
/* New flex styling for progress bar */
section.step-form .section-content .progress-bar {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 30px;
    margin: 30px 0;
    display: none;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0 6px;
}
/* Only show progress bar when it has steps */
section.step-form .section-content .progress-bar:has(*) {
    display: flex;
}
section.step-form .section-content .progress-bar::before {
    display: none;
}
/* Step pills */
section.step-form .section-content .step {
    width: 100%;
    flex: 1 1 auto;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #D9D9D9;
}
section.step-form .section-content .step:only-child {
    border-radius: 15px;
}
section.step-form .section-content .step:not(:only-child) {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
}
section.step-form .section-content .step:not(:last-of-type) {
    margin-right: -10px;
}
section.step-form .section-content .step:first-of-type:not(:last-of-type) {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}
section.step-form .section-content .step:last-of-type:not(:first-of-type) {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%);
}
section.step-form .section-content .step.active {
    background: #2F2F2F;
}
section.step-form .section-content .step.completed {
    background: #4CAF50;
}
/* Step pills content */
section.step-form .section-content .step .step-content {
    font-family: var(--font-sans-serif-stack);
    font-style: normal;
    font-size: 15px;
    line-height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.01em;
    color: #000;
}
section.step-form .section-content .step.active .step-content {
    font-weight: 700;
    color: #FFFFFF;
}
section.step-form .section-content .step.completed .step-content {
    color: #FFFFFF;
    font-weight: 700;
}




section.step-form .section-content .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}
section.step-form .section-content .form-row.name-row {
    margin-bottom: 10px;
}
section.step-form .section-content .form-group {
    flex: 1;
    margin-bottom: 20px;
}
section.step-form .section-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
section.step-form .section-content .required {
    color: #f44336;
}
section.step-form .section-content input[type="text"],
section.step-form .section-content input[type="email"],
section.step-form .section-content input[type="tel"],
section.step-form .section-content select,
section.step-form .section-content textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans-serif-stack);
    font-size: 15px;
}
section.step-form .section-content label:has(input[type="radio"]) {
    margin: 0;
    padding: 12px 24px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-sans-serif-stack);
    font-size: 15px;
}
section.step-form .section-content .radio-set {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
}
section.step-form .section-content .select-wrapper {
    position: relative;
}
section.step-form .section-content .select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: #555;
}
section.step-form .section-content select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white;
    cursor: pointer;
}
section.step-form .section-content textarea {
    resize: vertical;
    min-height: 120px;
}
section.step-form .section-content .char-count {
    text-align: right;
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}
section.step-form .section-content .form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
section.step-form .section-content button {
    /* padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-sans-serif-stack);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s; */
}
section.step-form .section-content .back-btn,
section.step-form .section-content .back-btn.icon-arrow-left-before {
    /* padding-top: 15px; /* Reduce to offset border's effect on height */
    /* padding-bottom: 15px; /* Reduce to offset border's effect on height */
    background-color: #f5f5f5;
    color: #333;
    /* border: 1px solid #ddd; */
}
section.step-form .section-content .back-btn:before,
section.step-form .section-content .back-btn.icon-arrow-left-before:before {
    background-color: #333;
}
section.step-form .section-content .back-btn:is(:hover, :focus, :active),
section.step-form .section-content .back-btn.icon-arrow-left-before:is(:hover, :focus, :active) {
    color: #333;
    background-color: #e0e0e0;
}
section.step-form .section-content .back-btn:is(:hover, :focus, :active):before,
section.step-form .section-content .back-btn.icon-arrow-left-before:is(:hover, :focus, :active):before {
    background-color: #333;
}
section.step-form .section-content .next-btn,
section.step-form .section-content .submit-btn {
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
}
section.step-form .section-content .next-btn:hover,
section.step-form .section-content .submit-btn:hover {
    background-color: #222;
}
section.step-form .section-content .submit-btn {
    background-color: #4CAF50;
    position: relative;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
section.step-form .section-content .submit-btn:hover {
    background-color: #3d8b40;
}
section.step-form .section-content .submit-btn .arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Interest type */
.form-step-contact-interest-type {
    width: 100%;
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    justify-content: start;
}
.form-step-contact-interest-type.active {
    display: flex;
}
.contact-interest-type-title {
    width: 100%;
    text-align: left;
}
section.step-form .section-content .form-row.contact-interest-type-row {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: start;
    align-items: stretch;
    width: 100%;
    max-width: max-content;
    margin: 45px auto 15px auto;
}
button.button-contact-interest-type,
button.button-contact-interest-type:is(:hover, :focus, :active) {
    white-space: normal;
}

/* Consent */
section.step-form .section-content .consent-section {
    margin: 20px 0;
}
section.step-form .section-content .consent-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
section.step-form .section-content .consent-item input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
    min-width: 18px;
    height: 18px;
    accent-color: #2F2F2F;
    cursor: pointer;
}
section.step-form .section-content .consent-item label {
    font-weight: normal;
    font-size: 14px;
    cursor: pointer;
}
section.step-form .section-content .consent-item a {
    color: #0066cc;
    text-decoration: underline;
}
section.step-form .section-content .consent-item a:hover {
    color: #004c99;
    text-decoration: underline;
}

@media screen only and (max-width: 1024px) {
    section.step-form .section-anchor {
        top: calc(-1 * (var(--header-banner-height) + var(--header-height) + 70px));
    }
}
@media screen only and (max-width: 768px) {
    section.step-form .section-content .form-container {
        /* padding: 20px; */
    }
    section.step-form .section-content .form-row {
        flex-direction: column;
        gap: 0;
    }
    section.step-form .section-content .step-content {
        font-size: 12px;
        padding: 8px 10px;
    }
    /*
    section.step-form .section-content .step[data-step="1"] .step-content {
        content: "Contact";
    }
    section.step-form .section-content .step[data-step="2"] .step-content {
        content: "Case";
    }
    section.step-form .section-content .step[data-step="3"] .step-content {
        content: "Finalize";
    }
    */
}


section.step-form .section-content .form-step {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0.5s ease, transform 0.5s ease;
    transform: translateY(20px);
}
section.step-form .section-content .form-step.active {
    opacity: 1;
    height: auto;
    overflow: visible;
    transform: translateY(0);
}
section.step-form .section-content .success-message {
    text-align: center;
    padding: 40px 20px;
}
section.step-form .section-content .success-message h2 {
    font-family: var(--font-sans-serif-stack);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}
section.step-form .section-content .success-message p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
section.step-form .section-content .contact-info {
    margin-top: 30px;
    font-size: 14px;
}
section.step-form .section-content .contact-info a {
    color: #4CAF50;
    text-decoration: none;
}
section.step-form .section-content .contact-info a:hover {
    text-decoration: underline;
}
section.step-form .section-content .checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: block;
}
section.step-form .section-content .checkmark-circle {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
section.step-form .section-content .checkmark-check {
    stroke: #4CAF50;
    stroke-width: 2;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}
section.step-form .section-content .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
section.step-form .section-content input.error,
section.step-form .section-content select.error,
section.step-form .section-content textarea.error,
section.step-form .section-content label:has(input[type="radio"].error) {
    border: 2px solid #f44336;
    background-color: rgba(244, 67, 54, 0.05);
    animation: shake 0.5s;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
section.step-form .section-content input.error:focus,
section.step-form .section-content select.error:focus,
section.step-form .section-content textarea.error:focus,
section.step-form .section-content label:has(input[type="radio"].error) {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.25);
    outline: none;
}
section.step-form .section-content label:has(input[type="radio"].error) {
    box-shadow: none;
}
section.step-form .section-content label.error {
    color: #f44336;
}
section.step-form .section-content .phone-icon {
    vertical-align: middle;
    margin-right: 5px;
    stroke: #4CAF50;
}
section.step-form .section-content .contact-info a {
    display: inline-flex;
    align-items: center;
    color: #4CAF50;
    text-decoration: none;
}
section.step-form .section-content .contact-info a:hover {
    text-decoration: underline;
}
section.step-form .section-content .case-type-title {
    /* text-align: center;
    font-family: var(--font-sans-serif-stack);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333; */
}
section.step-form .section-content .step-content .short-text {
    display: none;
}
@media (max-width: 768px) {
    section.step-form .section-content .step-content .full-text {
        display: none;
    }
    section.step-form .section-content .step-content .short-text {
        display: inline;
    }
}
section.step-form .section-content .form-step .security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}
section.step-form .section-content .security-note {
    display: none; 
}
section.step-form .section-content .step-content .short-text {
    display: none;
}
@media (max-width: 768px) {
    section.step-form .section-content .step-content .full-text {
        display: none;
    }
    section.step-form .section-content .step-content .short-text {
        display: inline;
    }
}
section.step-form .section-content .security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}
section.step-form .section-content .shield-icon {
    width: 20px;
    height: auto;
    margin-right: 10px;
}
section.step-form .section-content .security-note p {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}
@media (max-width: 768px) {
    section.step-form .section-content .security-note {
        flex-direction: column;
    }
    section.step-form .section-content .shield-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
section.step-form .section-content .progress-bar.completed {
    transition: all 0.8s ease;
    border-radius: 15px;
    overflow: visible;
    position: relative;
    animation: pulsate 2s ease-in-out infinite;
}
@keyframes pulsate {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 0 0 5px rgba(76, 175, 80, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}
section.step-form .section-content .progress-bar.completed:before {
    display: none;
}
section.step-form .section-content .progress-bar.completed .step .step-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}
section.step-form .section-content .progress-bar.completed:after {
    content: "Form Complete";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4CAF50;
    color: white;
    font-weight: 700;
    font-size: 15px;
    z-index: 20;
    opacity: 0;
    border-radius: 15px;
    animation: fadeIn 0.5s ease 0.8s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes moveRight {
    0% { left: 0; }
    100% { left: 16.67%; }
}
@keyframes moveLeft {
    0% { left: 66.67%; }
    100% { left: 50%; }
}
section.step-form .section-content .contact-info-title {
    text-align: center;
    font-family: var(--font-sans-serif-stack);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

/* Half-column style for inputs on desktop */
@media only screen and (min-width: 661px) {
    .col-half {
        max-width: calc((100% - 20px) / 2);
    }
}

/* Make inputs one column on mobile */
@media only screen and (max-width: 660px) {
    section.step-form .section-content .form-container {
        /* padding: 40px 25px; */
    }
    section.step-form .section-content .progress-bar {
        gap: 0 7px;
    }
    section.step-form .section-content .form-row {
        flex-direction: column;
    }
}

/* Radio inputs */
section.step-form .section-content label > input[type="radio"] {
    margin-right: 0.5rem;
}

/* PFAS contaminated areas map */
section.step-form .section-content .pfas-area-form-group {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    gap: 15px 40px;
}
section.step-form .section-content .pfas-area-figure {
    width: 100%;
    margin-bottom: 20px;
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
section.step-form .section-content .pfas-area-figure img {
    width: 100%;
}
section.step-form .section-content .pfas-area-figure figcaption {
    text-align: center;
    font-size: 1rem; 
    font-weight: 700; 
}
section.step-form .section-content .pfas-area-form-group .input-wrapper {
    width: 100%;
    flex: 1 1 50%;
}
section.step-form .section-content .pfas-area-form-group .radio-set {
}
@media only screen and (max-width: 880px) {
    section.step-form .section-content .pfas-area-form-group {
        flex-direction: column;
    }
    section.step-form .section-content .pfas-area-figure {
        margin-bottom: 0px;
    }
    section.step-form .section-content .pfas-area-figure img,
    section.step-form .section-content .pfas-area-figure figcaption {
        width: 80%;
    }
}
@media only screen and (max-width: 480px) {
    section.step-form .section-content .pfas-area-figure img,
    section.step-form .section-content .pfas-area-figure figcaption {
        width: 100%;
    }
}

/* Figure with loupe */
:root {
    --loupe-size: 200px;
}
section.step-form .section-content .figure-with-loupe {
    position: relative;
}
section.step-form .section-content .loupe {
    position: absolute;
    display: block;
    width: var(--loupe-size);
    height: var(--loupe-size);
    border: 5px solid #333;
    border-radius: calc(var(--loupe-size) / 2);
    background-color: #fff;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 99999;
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.33);
    pointer-events: none;

    visibility: hidden;
}
section.step-form .section-content .loupe.visible {
    visibility: visible;
}
section.step-form .section-content .loupe > img {
    position: relative;
    pointer-events: none;
}