﻿.stepper {
    display: flex;
    justify-content: center;
    margin: 30px auto 40px auto;
    list-style: none;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 950px;
    position: relative;
}

.stepper li {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
    color: #aaa;
    padding: 32px 0 0 0;
    font-size: 1.05rem;
    transition: color 0.2s, background 0.2s;
    z-index: 1;
    user-select: none;
    background: none;
}

    .stepper li .step-number {
        display: inline-block;
        width: 40px;
        height: 40px;
        line-height: 40px;
        border-radius: 50%;
        background: #e0e0e0;
        color: #888;
        font-weight: bold;
        font-size: 1.15rem;
        border: 3px solid #e0e0e0;
        transition: all 0.2s;
        position: relative;
        z-index: 2;
    }

    .stepper li.active .step-number {
        background: #007bff;
        color: #fff;
        border: 3px solid #007bff;
        box-shadow: 0 2px 8px rgba(0,123,255,0.15);
    }

    .stepper li.completed .step-number {
        background: #28a745;
        color: #fff;
        border: 3px solid #28a745;
    }

    .stepper li .step-label {
        display: block;
        margin-top: 8px;
        font-size: 1.05rem;
        font-weight: 500;
    }

    .stepper li.active .step-label {
        color: #007bff;
        font-weight: bold;
    }

    .stepper li.completed .step-label {
        color: #28a745;
        text-decoration: underline;
    }
    /* Đường kẻ giữa các bước */
    .stepper li:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50px; /* ngay dưới vòng tròn số */
        left: 50%;
        width: 100%;
        height: 4px;
        background: #e0e0e0;
        z-index: 1;
        transform: translateX(0);
    }

    .stepper li.active:not(:last-child)::after {
        background: #007bff;
    }

    .stepper li.completed:not(:last-child)::after {
        background: #28a745;
    }
    /* Để đường kẻ chỉ nối giữa các số, không đè lên số */
    .stepper li:first-child::after {
        left: 50%;
        width: 100%;
    }

    .stepper li:last-child::after {
        display: none;
    }

@media (max-width: 900px) {
    .stepper {
        flex-direction: column;
        box-shadow: none;
    }

        .stepper li {
            border-bottom: 1px solid #eee;
            padding-bottom: 12px;
        }

            .stepper li:last-child {
                border-bottom: none;
            }

            .stepper li:not(:last-child)::after {
                display: none;
            }
}
/* ... stepper css giữ nguyên ... */
.search-card {
    background: #fff;
    max-width: 420px;
    margin: 0 auto 32px auto;
    padding: 36px 32px 28px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    transition: box-shadow 0.2s;
    position: relative;
    top: 0;
    animation: fadeInUp 0.7s cubic-bezier(.39,.575,.565,1.000);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-card h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    letter-spacing: 1px;
}

.search-card label {
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    color: #222;
}

.search-card input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1.08rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafd;
    outline: none;
}

.search-card input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1.5px solid #d0d0d0;
    border-radius: 6px;
    font-size: 1.08rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #f8fafd;
    outline: none;
}

.search-card input[type="text"]:focus,
.search-card input[type="password"]:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 2px #e3f0ff;
        background: #fff;
    }

/* Style cho label của ô password - giữ màu xanh và icon */
.search-card label[for="soBaoDanh"] {
    color: #007bff;
    font-weight: 600;
    position: relative;
}

.search-card label[for="soBaoDanh"]::after {
    content: " 🔒";
    font-size: 0.9em;
    opacity: 0.7;
}

.search-card button[type="submit"] {
    width: 100%;
    background: linear-gradient(90deg, #007bff 60%, #0056b3 100%);
    color: #fff;
    border: none;
    padding: 12px 0;
    border-radius: 6px;
    font-size: 1.15rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,123,255,0.10);
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 1px;
    margin-top: 8px;
    cursor: pointer;
}

    .search-card button[type="submit"]:hover {
        background: linear-gradient(90deg, #0056b3 60%, #007bff 100%);
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 6px 18px rgba(0,123,255,0.18);
    }

.search-card .error-message {
    color: #e74c3c;
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.search-card .success-message {
    color: #28a745;
    margin-top: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.1);
}

.search-card .error-message {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

/* Animation cho messages */
.search-card .success-message,
.search-card .error-message {
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive cho mobile */
@media (max-width: 480px) {
    .search-card {
        margin: 0 16px 32px 16px;
        padding: 24px 20px 20px 20px;
    }
    
    .search-card h2 {
        font-size: 1.6rem;
    }
    
    .search-card input[type="text"],
    .search-card input[type="password"] {
        font-size: 1rem;
        padding: 8px 10px;
    }
    
    .search-card button[type="submit"] {
        font-size: 1.1rem;
        padding: 10px 0;
    }
}

