:root {
    --primary: #4361ee;
    --primary-hover: #3a56d4;
    --secondary: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
    --border-radius: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --input-height: 44px;
    --input-padding: 0 12px;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f7fb;
    color: var(--dark);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.form-container {
    width: 100%;
    max-width: 500px;
    margin: 15px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    box-sizing: border-box;
}

.logo {
    text-align: center;
    margin-bottom: 1rem;
}

.logo img {
    height: 36px;
    max-width: 100%;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    position: relative;
    overflow-x: auto;
    padding-bottom: 5px;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    text-align: center;
    z-index: 1;
    flex-shrink: 0;
    width: 20%;
    min-width: 60px;
}

.step-number {
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    color: #666;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    font-weight: 500;
}

.step.active .step-number {
    background: var(--primary);
    color: white;
}

.step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-title {
    font-size: 0.6rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step.active .step-title {
    color: var(--primary);
    font-weight: 500;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #555;
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    height: var(--input-height);
    padding: var(--input-padding);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    transition: var(--transition);
    box-sizing: border-box;
    background-color: #fafafa;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
    outline: none;
    background-color: white;
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.password-toggle:hover {
    color: var(--primary);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--secondary);
    font-size: 0.8rem;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
}

.radio-group {
    display: flex;
    gap: 8px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

.radio-option input {
    margin: 0;
}

.datepicker-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    height: var(--input-height);
    min-width: 90px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(67, 97, 238, 0.1);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 8px;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.2rem;
    display: block;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

.other-account-types {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.other-account-types h4 {
    text-align: center;
    margin-bottom: 0.8rem;
    color: var(--secondary);
    font-size: 0.85rem;
}

.account-type-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.account-type-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem;
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.8rem;
}

.account-type-link:hover {
    background-color: var(--primary);
    color: white;
}

.error-message {
    color: #dc3545;
    font-size: 0.75rem;
    margin-top: 0.2rem;
    display: none;
}

.form-header {
    text-align: center;
    margin-bottom: 1.2rem;
}

.form-header h2 {
    margin: 0 0 0.3rem 0;
    color: #333;
    font-size: 1.2rem;
}

.form-header p {
    margin: 0;
    color: var(--secondary);
    font-size: 0.85rem;
}

.text-muted {
    color: var(--secondary);
    font-size: 0.7rem;
    margin-top: 0.2rem;
    display: block;
}

.review-info {
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}

.review-info p {
    margin: 0.3rem 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .form-container {
        margin: 10px;
        padding: 1.2rem;
    }

    .form-header h2 {
        font-size: 1.1rem;
    }

    .step-title {
        font-size: 0.55rem;
    }

    .step-number {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }

    .progress-steps::before {
        top: 9px;
    }

    .btn {
        min-width: 80px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 5px;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-navigation {
        margin-top: 1.2rem;
    }
}
