﻿body {
    background: linear-gradient(to bottom, #fff, #dff4f9);
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
}

.form-container {
    width: 100%;
    margin: 0 auto;
    background: none;
    border-radius: 8px;
    padding: 20px 40px 40px;
}

@media (max-width:576px) {
    .form-container {
        margin-bottom: 17px !important;
    }
}

h2 {
    color: #d00000;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 1.74rem;
    line-height: 1;
}

/* Progress bar */
.progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.step-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 3.66rem !important;
    height: 3.66rem !important;
    color: #706974;
    border-radius: 50%;
    background: #dadada;
    box-shadow: none;
    text-shadow: none;
    text-align: center;
}

    .step-circle:before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        display: inline-block;
        box-sizing: border-box;
        width: 2.93rem;
        height: 2.93rem;
        padding: 0;
        color: #fff;
        border: 2px solid #fff;
        border-radius: 50%;
        transform: translate(-50%, -50%);
    }

*, *::before, *::after {
    box-sizing: border-box;
    text-size-adjust: none;
    -ms-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.step-circle.active {
    background: #84d26b;
    color: #fff;
}

.progress-line {
    position: absolute;
    top: 50%;
    left: 60px;
    right: 60px;
    height: 5px;
    background: #dcdcdc;
    transform: translateY(-50%);
    z-index: 1;
}

.step-circle.active + .progress-line {
    background: #84d26b;
}

/* Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 15px;
    background: #eee;
    color: #555;
    margin-top: 10px;
    margin-bottom: 4px;
}

input:focus {
    border: 1px solid #84d26b;
    background: #fff;
    outline: none;
}

label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.error-text {
    color: red;
    font-size: 13px;
    margin-top: -5px;
    margin-bottom: 8px;
}

/* DOB dropdowns */
.dob-group {
    display: flex;
    gap: 10px;
}

    .dob-group select {
        flex: 1;
    }

/* Gender buttons */
.gender-group {
    display: flex;
    gap: 20px;
    margin: 10px 0 20px;
}

    .gender-group button {
        flex: 1;
        padding: 12px 0;
        border: 2px solid #ccc;
        border-radius: 5px;
        background: #fff;
        font-weight: bold;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .gender-group button:hover {
            border-color: #84d26b;
        }

        .gender-group button.active {
            background: #84d26b;
            color: #fff;
            border-color: #84d26b;
        }

/* Next button */
.btn-next {
    background: linear-gradient(to bottom, #b3f186, #3d860b);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    padding: 15px;
    width: 100%;
    cursor: pointer;
    margin-top: 30px;
    transition: background 0.3s;
}

    .btn-next:hover {
        background: linear-gradient(to bottom, #a5e27c, #2f6d08);
    }

/* Back button */
.btn-prev {
    background: #ccc;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    padding: 15px;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}

/* Form steps visibility */
.form-step {
    display: none;
}

    .form-step.active {
        display: block;
    }

.progress-line {
    flex: 1;
    height: 5px;
    background: #dcdcdc;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.step-circle.active + .progress-line {
    background: #84d26b;
}

h2 {
    color: #d10000;
    text-align: left;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0 30px;
    flex-direction: inherit;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ccc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .step-circle.active {
        background-color: #8bc34a;
        border: 2px solid #6ea733;
    }

.line {
    flex-grow: 1;
    height: 4px;
    background-color: #8bc34a;
}

.step-line {
    position: relative;
    width: calc((100% - 10.97rem) / 4);
}

    .step-line .inner {
        position: absolute;
        z-index: 0;
        top: 50%;
        right: 0;
        left: 0;
        width: 100%;
        height: .77rem;
        margin-top: -.38rem;
        background-color: #dadada;
    }

.step-one {
    color: #fff;
    background: #9eca57 !important;
}


.password-field {
    display: flex;
}

.show-btn {
    background-color: #8bc34a;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    height: 36px;
    border-radius: 0 16px 16px 0;
    margin-top: 10px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
}

    .checkbox input {
        margin-right: 10px;
        margin-top: 5px;
    }

    .checkbox span {
        font-size: 14px;
        line-height: 1.5;
    }

a {
    color: #d10000;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.join-btn {
    background-color: #8bc34a;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    width: 100%;
    border-radius: 25px;
    cursor: pointer;
}

    .join-btn:hover {
        background-color: #7ab22e;
    }

.iti__flag {
    background-image: url("/images/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("/images/flags@2x.png");
    }
}

.iti__country-name {
    color: #000;
}

.iti__selected-dial-code {
    color: #000;
}
