.form-wrapper {
    flex: 1;
    background: #ffffff;
    padding: 20px;
    border-radius: 17px;
    justify-content: center;
    text-align: center;
    margin-top: -20px;
    min-height: 73vh;
}

.step {
    display: none;
}

.step.active {
    margin: 20px auto;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    position: relative;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 500;
    color: #000000;
}

.form-button {
    width: 100%;
    padding: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #ebebeb;
    color: #000000;
    border: none;
    border-radius: 17px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
    max-width: 620px;
    margin: 20px auto 0px;
}

.form-button:hover {
    background-color: #d6d6d6;
}

input {
    padding: 20px;
    font-size: 0.9rem;
    color: #000000;
    font-weight: 300;
    border: 1px solid #ccc;
    border-radius: 17px;
    width: 100%;
    margin: 20px auto 0px;
    max-width: 620px;
}

input:focus {
    outline: none;
    color: #000000;
}

input:focus::placeholder {
    color: transparent;
}

.suggestions-list {
    position: relative;
    top: 2px;
    max-width: 620px;
    margin: auto;
}

.suggestions-list {
    list-style: none;
    text-align: left;
    padding: 0;
    border-radius: 17px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    margin-top: -80px;
}

.suggestions-list li {
    padding: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    display: flex;
    align-items: center;
}

.suggestions-list li:hover {
    background-color: #f0f0f0;
}

.suggestions-list li::before {
    content: "";
    background-image: url("assets/buildio_location_marker_icon.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 8px;
}

.error-container {
    position: relative;
    color: #ff0000;
    font-size: 0.75rem;
    white-space: nowrap;
    text-align: left;
    margin: 1px 5px -10px;
    max-width: 620px;
}

select {
    appearance: none;         /* Remove default styles for all browsers */

    padding: 20px;
    font-size: 0.9rem;
    color: #747474;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 17px;
    width: 100%;
    margin: 20px auto 0px;
    max-width: 620px;
    font-weight: 300;

    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="%238f9097" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 17px;
}

select::-ms-expand {
    display: none; /* Removes dropdown arrow in IE */
}

select:focus {
    outline: none;
}

option {
    margin-top: 50px;
    border-radius: 17px;
}

h4 {
    font-weight: 200;
    margin-top: 10px;
    margin-bottom: 10px;
}

.step.thank-you h4 {
    font-size: 1.4rem;
}

.consent {
    display: flex;
    align-items: flex-start;
}

input[type="checkbox"] {
    appearance: none;         /* Remove default styles for all browsers */

    border-radius: 12px;
    padding: 17px;
    width: 25px;
    margin: 15px;
}

input[type="checkbox"]:checked {
    position: relative;
}

input[type="checkbox"]:checked::before {
    content: "✓";
    color: #8f9097;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: bold;
}

label[for="consent"] {
    font-size: 0.9rem;
    font-weight: 300;
    color: #747474;
    margin-top: 11px;
    text-align: left;
}

a {
    color: #747474;
}

.step.thank-you p {
    font-size: 0.9rem;
    font-weight: 200;
    color: #747474;
    margin-top: 20px;
}

/* Progress bar */
.progress-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 17px;
    margin-top: 35px;
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 105px auto 0px;
    width: 600px;
    transition: width 1.0s ease;
}

/* Progress line */
.progress {
    position: relative;
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    margin-bottom: 20px;
    border-radius: 2px;
}

.progress-line {
    position: absolute;
    height: 100%;
    width: 0%; /* Initial width */
    background-color: #d6d6d6; /* Active progress color */
    border-radius: 2px;
    transition: width 0.3s ease-in-out;
}

/* Progress steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: -33px;
}

.step-bar {
    position: relative;
    text-align: center;
    font-size: 0.9rem;
    color: #f0f0f0; /* Default inactive color */
}

.step-bar::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-color: #f0f0f0;
    border: 3px solid #d6d6d6;
    border-radius: 50%;
    margin: 0 auto;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border-color: #f0f0f0;
}

.step-bar.active {
    color: #d6d6d6; /* Active color */
}

.step-bar.active::before {
    border-color: #d6d6d6;
}

.step-bar.completed {
    color: #d6d6d6; /* Completed inactive color */
}

.step-bar.completed::before {
    background-color: #d6d6d6; /* Filled completed circle */
    border-color: #d6d6d6;
}

.step-bar.completed::after {
    content: "✓"; /* Checkmark */
    position: absolute;
    top: 0px;
    left: 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
}

@media (max-width: 620px) {
    .progress-container {
        width: 400px;
    }
}

@media (max-width: 430px) {
    .progress-container {
        width: 280px;
    }
}