.form-container {
    display: none;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-container.slide-in {
    opacity: 1;
    transform: translateY(0);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    margin-bottom: 32px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s ease;
}

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

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

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

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

.form-title {
    margin: 0 0 28px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-title i {
    font-size: 22px;
    color: #4f46e5;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

.form-group label i {
    color: #64748b;
    font-size: 15px;
}

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

.input-icon {
    position: absolute;
    right: 16px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    height: 52px;
    padding: 0 46px 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.form-group input:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
    color: #6366f1;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.custom-checkbox,
.custom-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 12px 42px 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    color: #475569;
    transition: all 0.2s ease;
}

.custom-checkbox:hover,
.custom-radio:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.custom-checkbox input,
.custom-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark,
.radio-mark {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.radio-mark {
    border-radius: 50%;
}

.checkmark i {
    font-size: 11px;
    color: #ffffff;
    display: none;
}

.custom-checkbox input:checked~.checkmark,
.custom-radio input:checked~.radio-mark {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.custom-checkbox input:checked~.checkmark i {
    display: block;
}

.custom-radio .radio-mark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.custom-radio input:checked~.radio-mark:after {
    display: block;
}

.custom-checkbox input:checked+.checkmark~span,
.custom-radio input:checked+.radio-mark~span {
    color: #4f46e5;
}

.custom-checkbox:has(input:checked),
.custom-radio:has(input:checked) {
    background-color: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
    font-weight: 600;
}

.icon-label {
    font-size: 14px;
    color: #64748b;
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-group .custom-radio {
    flex: 1;
    justify-content: center;
    padding-right: 42px;
}

.hidden {
    display: none !important;
}

.provinces-scroll-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.provinces-scroll-list .custom-checkbox {
    background: #ffffff;
    padding: 8px 36px 8px 12px;
}

.provinces-scroll-list .checkmark {
    right: 8px;
    height: 18px;
    width: 18px;
}

.provinces-scroll-list::-webkit-scrollbar {
    width: 6px;
}

.provinces-scroll-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.provinces-scroll-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.majors-list .input-wrapper {
    margin-bottom: 12px;
}

.add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #475569;
    border: 2px dashed #cbd5e1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: all 0.2s ease;
}

.add-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.scenario-card {
    position: relative;
    cursor: pointer;
}

.scenario-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.scenario-card .card-content {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    background: #f8fafc;
    height: 100%;
    transition: all 0.25s ease;
}

.scenario-card:hover .card-content {
    border-color: #cbd5e1;
    background: #ffffff;
}

.scenario-card input[type="radio"]:checked+.card-content {
    border-color: #4f46e5;
    background: #eef2ff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.card-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.scenario-icon {
    font-size: 24px;
    color: #4f46e5;
}

.badge {
    background: #4f46e5;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.scenario-card h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #1e293b;
}

.scenario-card p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.prev-btn {
    background: #f1f5f9;
    color: #475569;
}

.prev-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.next-btn {
    background: #4f46e5;
    color: #ffffff;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.next-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.submit-btn {
    background: #10b981;
    color: #ffffff;
    margin-right: auto;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.submit-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

@media (max-width: 768px) {

    .form-grid,
    .scenario-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 24px 16px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }
}