* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    background: #f0f2f5;
    color: #1c1e21;
    min-height: 100vh;
}

.step {
    display: none;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.35s ease;
}

.step.active {
    display: flex;
}

.card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    text-align: center;
}

.small-card {
    max-width: 390px;
}

.logo {
    width: 56px;
    height: auto;
    margin-bottom: 16px;
    border-radius: 10px;
}

.banner {
    width: 100%;
    display: block;
    margin-bottom: 18px;
    border-radius: 12px;
}

.otp-image {
    width: 100%;
    display: block;
    margin: 12px 0 16px;
    border-radius: 12px;
}
.notice-box {
    background: #f0f2f5;
    border-left: 4px solid #1877f2;
    padding: 14px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    margin: 14px 0 16px;
    color: #1c1e21;
}
h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.desc,
.card p {
    font-size: 15px;
    color: #606770;
    line-height: 1.45;
    margin-bottom: 16px;
}

.progress {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-bottom: 20px;
}

.progress span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d8dce3;
}

.progress span.done {
    background: #42b72a;
}

.progress span.active {
    background: #1877f2;
}

.robot-box {
    margin-top: 20px;
    border: 1px solid #ccd0d5;
    border-radius: 10px;
    padding: 16px;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: #fafafa;
    font-size: 16px;
    text-align: left;
}

.robot-box input {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    cursor: pointer;
}

input {
    width: 100%;
    min-height: 52px;
    padding: 15px;
    margin-top: 2px;
    border: 1px solid #ccd0d5;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    background: #ffffff;
}

input:focus {
    border-color: #1877f2;
    box-shadow: 0 0 0 2px #e7f3ff;
}

.error {
    min-height: 8px;
    margin: 2px 0 0;
    color: #d93025;
    font-size: 13px;
    text-align: left;
}

button {
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    padding: 14px;
    border: none;
    border-radius: 28px;
    background: #1877f2;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s ease;
}

button:hover {
    background: #166fe5;
}

button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.brand {
    margin-top: 22px;
    color: #737373;
    font-size: 13px;
}

.video-card {
    max-width: 560px;
}

video {
    width: 100%;
    display: block;
    border-radius: 14px;
    background: #000000;
    box-shadow: 0 6px 22px rgba(0,0,0,0.18);
}

.video-note {
    margin-top: 14px;
    color: #606770;
    font-size: 14px;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.92);
}

.loading-overlay.active {
    display: flex;
}

.loading-box {
    width: 100%;
    max-width: 370px;
    padding: 28px 22px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 35px rgba(0,0,0,0.2);
    text-align: center;
}

.loading-logo {
    width: 54px;
    height: auto;
    margin-bottom: 14px;
    border-radius: 10px;
}

.spinner {
    width: 48px;
    height: 48px;
    margin: 10px auto 18px;
    border: 5px solid #e4e6eb;
    border-top-color: #1877f2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-box h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

#loadingStatus {
    min-height: 22px;
    margin-bottom: 6px;
    color: #1c1e21;
    font-size: 15px;
}

#countdown {
    display: inline-block;
    margin-top: 10px;
    color: #1877f2;
    font-size: 28px;
}

/* Trong file style.css của bạn, hãy sửa thành: */
.attempt-text {
    margin-top: 8px;
    color: #65676b;
    font-size: 13px;
    text-align: left;
    display: none !important; /* Thêm dòng này để ẩn hoàn toàn */
}

.resend-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 12px;
}

.resend-btn {
    width: auto;
    min-width: 58px;
    max-width: 150px;
    flex: 0 0 auto;
    min-height: 38px;
    margin-top: 0;
    padding: 8px 14px;
    border: 1px solid #ccd0d5;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    background: #f0f2f5;
    color: #606770;
    font-size: 14px;
    font-weight: 600;
}

.resend-btn:hover {
    background: #e4e6eb;
}

#resendTimer {
    min-width: 48px;
    color: #65676b;
    font-size: 14px;
}

.success-icon {
    width: 54px;
    height: 54px;
    margin: 6px auto 16px;
    border-radius: 50%;
    background: #42b72a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.request-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: #f0f2f5;
    font-size: 14px;
}

.request-box span {
    display: block;
    margin-bottom: 4px;
    color: #65676b;
}

.request-box strong {
    color: #1877f2;
    font-size: 16px;
}

.locked-message {
    color: #d93025 !important;
    font-weight: bold;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

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

@media (max-width: 600px) {
    body {
        background: #ffffff;
    }

    .step {
        min-height: 100svh;
        padding: 0;
        background: #ffffff;
        align-items: flex-start;
        overflow-y: auto;
    }

    .card {
        width: 92%;
        max-width: 92%;
        margin: 18px auto 32px;
        padding: 20px 18px;
        border-radius: 0;
        box-shadow: none;
    }

    .small-card {
        margin-top: 62px;
    }

    .video-card {
        width: 92%;
        max-width: 92%;
        margin-top: 52px;
    }

    .form-card {
        margin-top: 14px;
    }

    .otp-card {
        margin-top: 10px;
    }

    .logo {
        width: 50px;
        margin-bottom: 12px;
    }

    .banner,
    .otp-image {
        width: 100%;
        border-radius: 10px;
    }

    h2 {
        font-size: 22px;
    }

    .desc,
    .card p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    input,
    button {
        min-height: 52px;
        font-size: 16px;
    }

    input:focus {
        scroll-margin-top: 120px;
    }

    .loading-box {
        max-width: 92%;
    }
}
#contact {
    margin-bottom: 4px !important;
}

#customerCode {
    margin-top: 4px !important;
    margin-bottom: 12px !important;
}

#submitBtn {
    margin-top: 24px !important;
}
/* Tùy chỉnh màu sắc dấu tích trạng thái */
.check-color {
    color: #1877F2;
    margin-right: 8px;
    font-weight: bold;
}
