﻿body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-items: center;
    align-items: center;
    z-index: 4;
}

.modal {
    background: white;
    border-radius: 22px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0px 3px 20px rgba(0, 0, 0, 0.2);
    z-index: 4;
    position: relative;
}

.modal-title {
    font-family: "Inter-Bold", Arial, sans-serif;
    font-size: 24px;
    color: #000;
    text-align: center;
    margin-bottom: 16px;
}

.modal-description {
    font-family: "Inter-Regular", Arial, sans-serif;
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.modal-error-message {
    font-family: "Inter-Regular", Arial, sans-serif;
    font-size: 14px;
    color: red;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}

.otp-input-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 1px solid #D0D0D0;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    font-family: "Inter-SemiBold", Arial, sans-serif;
    color: #000;
    transition: border-color 0.3s;
}

    .otp-input:focus {
        outline: none;
        border-color: #FFDC00;
        box-shadow: 0px 0px 0px 3px rgba(255, 220, 0, 0.2);
    }

.submit-btn {
    width: 160px;
    height: 56px;
    background-color: #FFDC00;
    border: none;
    border-radius: 28px;
    font-family: "Inter-SemiBold", Arial, sans-serif;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    display: block;
    margin: 8px auto;
    transition: background-color 0.3s, transform 0.2s;
}

    .submit-btn:hover {
        background-color: #FFE54D;
        transform: translateY(-2px);
    }

    .submit-btn:active {
        transform: translateY(0);
    }

.cancel-btn {
    width: 160px;
    height: 56px;
    background-color: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 28px;
    font-family: "Inter-SemiBold", Arial, sans-serif;
    font-size: 16px;
    color: #000;
    cursor: pointer;
    display: block;
    margin: 0 auto 24px;
    transition: background-color 0.3s, transform 0.2s;
}

    .cancel-btn:hover {
        background-color: #FFF;
        transform: translateY(-2px);
    }

    .cancel-btn:active {
        transform: translateY(0);
    }

.resend-section {
    text-align: center;
    font-size: 14px;
}

.resend-text {
    color: #666;
    font-family: "Inter-Regular", Arial, sans-serif;
}

.resend-link {
    color: #C0C0C0;
    text-decoration: none;
    font-family: "Inter-Medium", Arial, sans-serif;
    cursor: not-allowed;
}

    .resend-link.active {
        color: #0169AF;
        cursor: pointer;
    }

        .resend-link.active:hover {
            text-decoration: underline;
        }

.timer {
    color: #666;
    font-family: "Inter-Regular", Arial, sans-serif;
    margin-top: 4px;
}

@media screen and (max-width: 768px) {
    .modal {
        padding: 30px 20px;
        margin-top: 50vw;
    }

    .modal-title {
        font-size: 20px;
    }

    .otp-input {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .otp-input-container {
        gap: 8px;
    }
}

@media screen and (min-width: 769px) {
    .modal {
        margin-top: 15vw;
    }
}