.yks-calculation-university-container {
    display: flex;
    flex-direction: column;
    margin-top: 80px;
}

.yks-calculation-container {
    padding: 26px!important;
}

@media(max-width: 991px) {
    .yks-calculation-university-container {
        margin-top: 50px;
    }
}

.yks-scholar-t-right {
    text-align: end;
}

@media(max-width: 991px) {
    .yks-scholar-t-right {
        text-align: left;
    }
}

@media(max-width: 991px) {
    .yks-cholar-t-left {
        order: 1;
    }
}

.yks-calculation-detail-btn {
    width: fit-content;
    margin: 0 0 0 auto
}

.yks-calculation-detail-btn a {
    margin-top:-50px;
    padding:10px 36px
}

@media (max-width: 991px) {
    .yks-calculation-detail-btn {
        margin: 30px 0 0 60px;
    }
}

@media (max-width: 768px) {
    .yks-calculation-detail-btn {
        margin: 30px 0 0 0;
    }
}

@media (max-width: 1199px) {
    .yks-calculation-detail-btn a {
        margin-top:auto;
    }
}

.yks-input-container {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.yks-form-select-wrapper > .choices .choices__inner .choices__item {
    max-width: 100%;
}

.yks-form-point-select  {
    width: 170px!important;
    max-width: 100%;
}

.choices__list--single {
    padding: 4px 20px 4px 4px;
}

@media (max-width: 576px) {
    .yks-input-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }

    .yks-input-container .textInput-name {
        width: 100%;
    }

    .yks-form-select-wrapper {
        width: 100%;
    }

    .yks-form-point-select {
        width: 100%!important;
    }
}

.exam-point-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.exam-point-panels-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.exam-point-panel[hidden] {
    display: none;
}

.exam-point-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.exam-point-header,
.exam-point-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
    align-items: center;
    column-gap: 12px;
}

.exam-point-header {
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(13, 13, 18, 0.06);
    margin-bottom: 4px;
}

.exam-point-header h3 {
    margin: 0;
    font-size: 17px;
    line-height: 24px;
    color: #0d0d12;
}

.exam-point-columns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #4f5665;
    justify-content: flex-end;
    min-width: 150px;
}

.exam-point-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exam-point-row {
    gap: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(13, 13, 18, 0.05);
}

.exam-point-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exam-point-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 160px;
}

.exam-point-label span:first-child {
    font-weight: 600;
    color: #0d0d12;
}

.exam-point-label span:last-child {
    font-size: 13px;
    color: #7a8194;
}

.exam-point-inputs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #4f5665;
    justify-content: flex-end;
    min-width: 150px;
}

.exam-point-inputs input {
    width: 60px;
    padding: 8px 10px;
    font-size: 15px;
    text-align: center;
    border: none;
    box-shadow: 0px 0px 0px 1px rgba(18, 55, 105, 0.08), 0px 1px 2px 0px rgb(164 172 185 / 63%);
    border-radius: 62px;
    transition: 300ms;
    color: #0D0D12;
}

.exam-point-inputs input:hover {
    box-shadow: 0px 0px 0px 1px rgba(9, 25, 72, 0.16), 0px 1px 2px 0px rgba(9, 25, 72, 0.16);
}

.exam-point-inputs input:focus {
    box-shadow: 0px 0px 0px 1px #19cefb;
    outline: none;
}

.exam-point-extra {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(13, 13, 18, 0.08);
}

.exam-point-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exam-point-field label {
    font-weight: 600;
    color: #0d0d12;
}

.exam-point-field input {
    padding: 10px 12px;
    border-radius: 60px;
    font-size: 14px;
    background: var(--background-white, #FFF);
    transition: 300ms;
    box-shadow: 0px 0px 0px 1px rgba(18, 55, 105, 0.08), 0px 1px 2px 0px rgba(164, 172, 185, 0.24);
    border: none;
    outline: none;
}

.exam-point-field input:focus {
    box-shadow: 0px 0px 0px 1px #19cefb;
    outline: none;
}

.exam-point-checkbox {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exam-point-checkbox-title {
    font-weight: 600;
    color: #0d0d12;
}

.exam-point-checkbox-content {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #4f5665;
}

.exam-point-checkbox-content input {
    margin-top: 4px;
}

.exam-point-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.exam-point-actions .btn-primary,
.exam-point-actions .btn-black {
    padding: 10px 26px;
    min-width: unset;
    width: fit-content;
}

.yks-error-bubble {
    position: absolute;
    top: -12px;
    right: auto;
    background: #fff;
    color: #DC3545;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.3;
    z-index: 10;
    transition: opacity 200ms ease, transform 200ms ease;
    border: 1px solid #dc3545;
}

.yks-error-bubble.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
}

.yks-input-error {
    box-shadow: 0 0 0 1px rgba(255, 77, 79, 0.8), 0px 1px 6px rgba(255, 77, 79, 0.45);
    color: #ff4d4f;
}

@media (max-width: 768px) {
    .exam-point-panels-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .exam-point-panel-common {
        grid-column: 1 / -1;
    }

    .exam-point-header,
    .exam-point-row {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .exam-point-columns,
    .exam-point-inputs {
        justify-content: flex-start;
    }

    .exam-point-panel {
        padding: 0;
    }

    .exam-point-label {
        min-width: 0;
    }

    .exam-point-inputs {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .exam-point-inputs input {
        width: 60px;
    }

    .exam-point-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .exam-point-actions .btn-primary,
    .exam-point-actions .btn-black {
        width: 100%;
    }
}

.exam-input-name {
    font-size: 16px;
    color: #0D0D12;
}


.yks-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yks-result-card {
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-bottom: 80px;
}

.yks-result-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.yks-result-card h3 {
    margin: 0;
    font-size: 24px;
    color: #0d0d12;
}

.yks-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.yks-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.yks-table-title {
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: #0d0d12;
    background: linear-gradient(90deg, #f3f7ff, #ffffff);
}

.yks-table th,
.yks-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    color: #0d0d12;
    white-space: nowrap;
}

.yks-table th.exam-type,
.yks-table td.exam-type {
    min-width: 120px;
    font-weight: 700;
    color: #1f2c46;
}

.yks-table tbody tr:nth-child(odd) {
    background: #fcfdff;
}

.yks-table tbody tr:hover {
    background: #f6f9ff;
}

.yks-table .section-divider {
    background: #eef4ff;
    font-weight: 700;
    color: #1f2c46;
}

.yks-results-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: absolute;
    bottom: 20px;
    right: 20px;
    align-items: center;
}

.yks-results-actions button {
    min-width: 150px;
}

.yks-download-btn {
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
    border-radius: 100px;
    font-size: 16px;
}

.yks-download-btn i {
    font-size: 18px;
}

.yks-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.yks-download-btn .ri-loader-4-line {
    animation: yks-spin 1s linear infinite;
}

@keyframes yks-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .yks-results-actions {
        position: static;
        margin-top: 20px;
        justify-content: center;
    }
    
    .yks-result-card {
        padding-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .yks-results {
        padding: 20px;
    }
}

.form-select-wrapper > .choices {
    z-index: 1;
}

.yks-info-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.yks-info-text-icon {
    min-width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #00b7fd;
    font-size: 28px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
    width: 64px;
}

.yks-calculation-detail-btn-left {
    margin-top: -105px;
}

@media (max-width: 1199px) {
    .yks-calculation-detail-btn-left {
        margin-top: 0;
    }
}