body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    background-color: #0577bf;
    background-image: url("gradient.png");
    background-size: cover;
    color: white;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.header-content {
    position: relative;
    z-index: 1;
    margin: 40px 0;
}

.header-content h1 {
    margin: 0;
    padding-bottom: 20px; /* Add padding below the heading */
}

.container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 700px; /* Make the container wider */
    max-width: 100%;
    padding: 20px;
    margin-top: -50px;
    z-index: 2;
    position: relative;
}

.progress-bar-label {
    font-family: 'Montserrat', sans-serif;
    color: #515355;
    text-align: center;
    margin-bottom: 10px;
}

.progress-bar {
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress {
    background-color: #0577bf;
    height: 10px;
    width: 20%;
}

.form-step {
    display: none;
}

.form-step-active {
    display: block;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    color: #515355;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group.inline {
    flex-direction: row;
    justify-content: space-between;
}

.form-group.inline .form-group-item {
    width: 48%;
}

.form-group-item {
    display: flex;
    flex-direction: column;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box; /* Ensure padding is included in the width */
    margin-bottom: 10px; /* Add padding between address input fields */
}

input[type="radio"] {
    width: auto;
    margin-right: 10px;
}

.radio-group {
    display: flex;
    align-items: center;
}

.radio-group label {
    margin-right: 20px;
}

.phone-group .form-group-item {
    display: flex;
    flex-direction: column;
}

.phone-input {
    display: flex;
    align-items: center;
    position: relative;
}

.flag-icon {
    position: absolute;
    left: 10px;
    font-size: 20px;
}

.phone-input input {
    padding-left: 40px; /* Adjust to make room for flag icon */
}

.inline-inputs {
    display: flex;
    justify-content: space-between;
}

.inline-inputs select,
.inline-inputs input {
    width: 30%;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.btn-next,
.btn-prev {
    background-color: #cd3e45;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 48%;
}

.btn-prev {
    background-color: #0577bf; /* Make the previous button blue */
}

.btn-next.full-width {
    width: 100%; /* Full-width for the next button on the first page */
}

.btn-next:hover,
.btn-prev:hover {
    background-color: #a83237;
}

.btn-prev:hover {
    background-color: #0469a2; /* Darken the previous button on hover */
}

.invalid {
    border-color: red;
}

.invalid + .error-message {
    color: red;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.required {
    color: red;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
}

.radio-group label {
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

/* Apply red border to invalid input fields */
input.invalid, textarea.invalid, select.invalid {
    border: 2px solid red;
    outline: none;
}

/* Optional: Style for error messages */
.error-message {
    color: red;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}


.invalid {
    border-color: red !important;
    border-width: 2px;
}






















