body {
    font-family: "Noto Sans TC", sans-serif;
    background: #eeeeee;
    line-height: 1.5;
}

input,
select,
textarea {
    line-height: 1.5;
    font-size: 16px;
}


.dash-line {
    width: 12px;
    height: 1px;
    background-color: #323232;
    margin-bottom: 24px;
}

.star-end {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

/* tet-color */

.black {
    color: #323232;
}

.white {
    color: white;
}

.orange {
    color: #EB6100;
}

.blue {
    color: #0053AC;
}

.primary {
    color: #323232;
}

.secondary {
    color: #737373;
}


/* Card style */
.signup,
.apply,
.result,
.applyinfo,
.get-password,
.addnew,
.preview {
    border-radius: 16px;
    border: 1px solid #E9E9E9;
    max-width: 768px;
    padding: 40px 80px;
    background-color: white;
    margin: 0 auto;
}

@media (max-width: 767px) {

    .signup,
    .hiring-card,
    .apply,
    .result,
    .applyinfo,
    .get-password,
    .addnew,
    .email-card,
    .preview {
        padding: 24px 16px;
    }

    .star-end {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .dash-line {
        width: 1px;
        height: 8px;
        margin-bottom: 0px;

    }
}




/* ContainerBlock */

.wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 120px 0px 120px 0px;
    margin: 0 auto;
}


.title {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 32px;
}

@media (max-width: 1439px) {
    .wrapper {
        max-width: 1200px;
        padding: 96px 32px;
    }
}

@media (max-width: 1023px) {
    .wrapper {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .wrapper {
        padding: 58px 16px;
    }

    .title {
        gap: 16px;
    }
}

/* 黑色遮罩 */
.overlay {
    display: none;
    /* 初始隱藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* 黑色遮罩 */
    z-index: 500;
    /* 在側邊欄之下 */
    transition: opacity 0.3s ease;
    /* 遮罩淡入淡出 */
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* 側邊選單 */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    max-width: 320px;
    height: 100vh;
    background-color: white;
    z-index: 600;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}


/* 開啟時的效果 */
.sidebar.active {
    transform: translateX(0);
    /* 滑入視窗 */
}

.side ul {
    list-style: none;
}



/* 側邊選單項目 */
.sidebar ul {
    padding-top: 24px;
    list-style-type: none;
}

.side-name {
    font-size: 20px;
    font-weight: 600;
    margin-top: 12px;
}

.sidebar a {
    color: #323232;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding: 16px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

}

@media (max-width: 1023px) {
    .sidebar {
        display: block;
    }
}



/* --------------input-------------------- */
.operation {
    display: flex;
    justify-content: space-between;
}

label {
    display: block;
    color: #323232;
    margin-bottom: 4px;
    font-weight: 600;
}


input {
    width: 100%;
    padding: 12px;
    background-color: #F0F0F0;
    border: none;
    border-radius: 8px;
}

input::placeholder {
    color: #929292 !important;
}


.input-container,
.select-container,
.ver-code {
    width: 100%;
}

.input-container.disabled label {
    color: #BCBCBC;
}

.input-container.disabled input:disabled {
    color: #BCBCBC;
    background-color: #e9e9e9;
}

select {
    width: 100%;
    padding: 12px;
    background-color: #F0F0F0;
    border: none;
    border-radius: 8px;
    appearance: none;
    background-image: url(../IMG/angle-down_outline.svg);
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    color: #929292;
}

.select-container.disabled label {
    color: #323232;
}

select:disabled {
    color: #BCBCBC;
    background-color: #e9e9e9;
    opacity: 1;
    background-image: url(../IMG/angledown-disabled.svg);
}

.custom-select.has-value select {
    color: #323232;
}

.custom-select select option[disabled] {

    color: #929292 !important;
}

.input-with-calendar {
    padding-right: 24px;
    background-image: url('../IMG/calendar-icon.svg');
    background-repeat: no-repeat;
    background-position: right 12px center;

}

textarea::placeholder {
    color: #b3b3b3;
}


/* ---------------ToggleToken----------------- */

.radio-group {
    display: flex;
    flex-direction: column;
}

.radio-container {
    display: flex;
    align-items: center;
}

.radio-input {
    display: none;
}

.radio-option {
    display: flex;
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
}

.radio-label {
    cursor: pointer;
    padding: 8px 16px;
    background-color: #e9e9e9;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    color: #737373;
    font-weight: 500;
}

.radio-input:checked+.radio-label {
    background-color: #267CC9;
    color: white;
    border-color: #267CC9;
    font-weight: 500;
}






/* ---------Component---------- */


.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #E9F2FA;
    border-radius: 8px;
}


/* button */

.primary-btn,
.secondary-btn,
.icon-secondary-btn,
.medium-btn {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.medium-btn {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background-color: #0053AC;
    color: white;
    border: none;
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid #0053AC;
    color: #0053AC;
}


.icon-secondary-btn {
    width: fit-content;
    background-color: rgba(255, 255, 255, 0);
    border: 1px solid #0053AC;
    color: #0053AC;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 40px;
}

.primary-btn:hover {
    background-color: #00539D;
    color: white;
}

.secondary-btn:hover {
    background-color: #00539D;
    color: white;
}

.icon-secondary-btn:hover {
    background-color: #00539D;
    color: white;
}

.icon-secondary-btn:hover img {
    content: url(../IMG/plus-s_outline.svg);
}

.primary-btn:disabled {
    background-color: #BCBCBC;
    color: #E9E9E9;
    cursor: not-allowed;
}

.back-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.back-action a {
    display: flex;
    align-items: center;
    gap: 8px;
}



/* title */
.step-title {
    max-width: 768px;
    margin: 0 auto;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.title-line {
    width: 100%;
    height: 1px;
    background-color: #E9E9E9;
}

.rectangle {
    width: 6px;
    height: 32px;
    background-color: #0053AC;
}

.decorate {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.block-title {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 767px) {
    .step-title {
        margin-top: 24px;
    }
}

/* Subtitle */
.subtitle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sub-rectangle {
    width: 6px;
    height: 24px;
    background-color: #0053AC;
}

.subtitle h3 {
    color: #323232;
}

.subtitle span {
    color: #737373;
    padding-left: 22px;
    flex: 0 0 auto;
    align-self: auto;
}

.subtitle a {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------chip--------- */

.chip-orange,
.chip-gray,
.chip-green,
.chip-red {
    border-radius: 80px;
    width: auto;
    padding: 2px 6px;
    font-weight: 400;
}

.chip-orange {
    background-color: #FDEFE6;
    color: #EB6100;
}

.chip-gray {
    background-color: #F0F1F3;
    color: #64748B;
}

.chip-green {
    background-color: #E6F2EA;
    color: #007B2A;
}

.chip-red {
    background-color: #FFE6E6;
    color: #D8000C;
}

/* ---------go top--------- */
#goTop {
    position: fixed;
    bottom: 40px;
    right: 48px;
    width: 40px;
    height: 40px;
    background: rgba(43, 43, 43, 0.71);
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
}

#goTop:hover {
    background: #333;
}



/* Spacing */

.preview-spacing {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.form-spacing {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.preview-spacing p {
    margin: 0;
}

.w-328 {
    width: 328px;
    margin: 0 auto;
}

.full-width {
    width: 100%;
}

#success-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.block-height {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.radio-switch {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pl-22 {
    padding-left: 22px;

}

.mt-32 {
    margin-top: 12px;
}

.error-message {
    color: red;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid red;
    background-color: #ffe6e6;
}

/* Loading Spinner */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loadingOverlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0E69AF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}