.academy-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.academy-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 456px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 298px;
}

.academy-modal-header {
    padding: 24px 20px 0px;
    text-align: center;
    position: relative;
}

.academy-modal-header h3 {
    margin: 0;
    color: #000;
    font-size: 20px;
    font-weight: 600;
}

.academy-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.academy-close::before,
.academy-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 1.5px;
    background-color: #747474;
    transform-origin: center;
}

.academy-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.academy-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.academy-close:hover::before,
.academy-close:hover::after {
    background-color: #333;
}

#userTypeModal .academy-modal-body {
    padding: 0 24px;
}

.modal-subtitle {
    margin: 20px 0 60px;
    color: #919699;
    font-size: 14px;
    text-align: center;
}

#userTypeModal .modal-subtitle {
    text-align: left;
    font-size: 16px;
    color: #161616;
    margin-bottom: 2px;
    font-weight: 600;
    margin-top: 20px;
}

#userTypeModal .modal-subdesc {
    text-align: left;
    color: #525557;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 22px;
}

#userTypeModal .academy-modal-header h3 {
    font-size: 24px;
}

.user-type-group {
    margin-bottom: 23px;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.radio-option {
    display: flex;
    padding: 13px 13px 14px 33px;
    border: 1px solid #C9C9C9;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
    flex: 1;
    border-radius: 6px;
}

.radio-option img {
    margin-right: 18px;
}

.radio-option:hover {
    border-color: #00CE7A;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option:has(input:checked) {
    border-color: #00CE7A;
    position: relative;
}

.radio-option:has(input:checked) .radio-text {
    font-weight: 600;
    transition: all 0.2s;
}

.radio-option:has(input:checked) .radio-desc {
    font-weight: 600;
}

.academy-modal-content .radio-text {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.academy-modal-content .radio-desc {
    display: block;
    font-size: 12px;
    color: #8F9598;
}

.academy-modal-body .form-group {
    margin-bottom: 15px;
}

.academy-modal-body .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.academy-modal-body .form-group input:focus {
    outline: none;
    border-color: #00c896;
}

.academy-modal-body .clear-btn {
    display: block;
    color: #fff;
    background: #D9D9D9;
    border-radius: 10px;
    line-height: 15px;
}

.academy-modal-footer {
    padding: 0 20px 24px;
    text-align: center;
}

.academy-modal-footer .confirm-btn {
    padding: 10px 4px;
    background-color: #fff;
    color: #000;
    border: none;
    border-radius: 200px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    min-width: 160px;
    border: 1px solid #000;
}

.academy-modal-body .form-group {
    margin-top: 90px;
    margin-bottom: 60px;
    text-align: center;
}

.confirm-btn:hover {
    color: #00CE7A;
    border-color: #00CE7A;
}

.code-content .academy-modal-body {
    padding: 0 24px;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

#codeInput {
    border: none;
    border-bottom: 1px solid #000 !important;
    border-radius: 0;
    margin: 0 auto;
    padding: 4px 25px 4px 0;
    color: #000;
    height: unset;
    width: 100%;
}

.clear-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #999;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    color: #666;
}

.error-message {
    color: #F6222D;
    font-size: 12px;
    margin-top: 5px;
    text-align: left;
}

.content-fly-out {
    animation: contentFlyOut 0.3s ease-in forwards;
}

.content-fly-in {
    animation: contentFlyIn 0.5s ease-out forwards;
}

@keyframes contentFlyOut {
    0% {
        transform: translate(-50%, -50%) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) translateX(-100%);
        opacity: 0;
    }
}

@keyframes contentFlyIn {
    0% {
        transform: translate(-50%, -50%) translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .academy-modal-content {
        margin: 10% auto;
        width: 95%;
        max-width: none;
    }

    .code-content {
        max-width: none;
    }

    .academy-modal-header {
        padding: 30px 20px 0px;
    }

    .academy-modal-header h3 {
        font-size: 18px;
    }

    #userTypeModal .academy-modal-header h3 {
        font-size: 20px;
    }

    #userTypeModal .academy-modal-body {
        padding: 0 20px;
    }

    #userTypeModal .modal-subtitle {
        font-size: 16px;
        margin-top: 20px;
    }

    #userTypeModal .modal-subdesc {
        font-size: 12px;
        margin-bottom: 20px;
        color: #525557;
    }

    .user-type-group {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 26px;
    }

    .radio-option {
        padding: 12px 30px 12px 15px;
    }

    .radio-option img {
        margin-right: 12px;
    }

    .radio-text {
        font-size: 16px;
    }

    .radio-desc {
        font-size: 14px;
    }

    .academy-modal-footer {
        padding: 0 20px 25px;
    }

    .confirm-btn {
        padding: 10px 40px;
        min-width: 100px;
        font-size: 13px;
    }

    .code-content .academy-modal-body {
        padding: 0 20px;
    }

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

    .modal-subtitle {
        margin: 15px 0 40px;
        font-size: 13px;
    }
}