/* 
---------------------------------------------
                    Modal
--------------------------------------------- 
*/
[hidden] {
    display: none !important;
}

#modal-receipt .tab-list [aria-selected="true"] {
    background: #0046B8;
    color: white;
    border-color: #0046B8;
}

.no-scroll {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    padding: 60px 16px;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.modal {
    display: none;
}

.modal.is-open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 0;
}

.modal-dialog {
    position: relative;
    z-index: 1;
    outline: none;
    max-width: 810px;
    width: 100%;
    max-height: calc(100vh - 120px);
    overflow: auto;
    background: white;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 35px;
    right: 35px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    color: #424A53;
    transition: color .18s ease, transform .12s ease;
}

.modal-close .icon-x path {
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
    transition: stroke .18s ease;
}

.modal-close:hover {
    color: #0046B8;
    transform: translateY(-1px) scale(1.05);
}

.modal-close:active {
    transform: none;
}

.modal-close:focus-visible {
    outline: 2px solid #0046B8;
    outline-offset: 2px;
}

.receipt-modal {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.receipt-head {
    padding: 40px 50px 50px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.receipt-modal .title {
    padding-bottom: 20px;
    border-bottom: 1px solid #D0D7DE;
    color: #101010;
    font-size: 32px;
    font-weight: 600;
}

.receipt-modal .sub {
    color: #414141;
    font-size: var(--font-base);
}

.receipt-modal .tab-list {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0
}

.receipt-modal .tab-list li {
    background-color: #F9F9F9;
    border: none;
    border-radius: 10px;
}

.receipt-modal .tab-list a {
    border-radius: 10px;
    padding: 14px 30px;
    font-size: var(--font-md);
}

.receipt-modal .tab-list [role="tab"][aria-selected="true"] {
    background: #0046B8;
    color: white;
    border-color: #0046B8;
}

#modal-receipt .tab-list [role="tab"]:hover {
    background: rgba(0, 70, 184, .08);
}

#modal-receipt .tab-list [role="tab"]:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px rgba(0, 70, 184, .5);
}

#modal-receipt .tab-list [role="tab"][aria-selected="true"]:hover {
    background: #0046B8;
    color: #fff;
    border-color: #0046B8;
}

.receipt-panel {
    border-top: 1px solid #D0D0D0;
    padding: 30px 50px 40px;
}

.modal-dialog .section-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.modal-dialog .section-title {
    color: #101010;
    font-size: var(--font-xl);
    font-weight: 600;
}

.modal-dialog .section-desc {
    color: #414141;
    font-size: var(--font-base);
    font-weight: 400;
}

.modal-dialog .field {
    margin: 0 0 15px
}

.modal-dialog .input,
.modal-dialog .select {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: 1px solid #A0A0A0;
    border-radius: 10px;
    font-size: var(--font-base);
}

.modal-dialog .input::placeholder {
    color: #707070;
}

.modal-dialog .input:focus,
.modal-dialog .select:focus {
    outline: 0;
    border-color: #0046B8;
    box-shadow: 0 0 0 2px rgba(0, 70, 184, .12)
}

.modal-dialog .btn {
    cursor: pointer;
}

.modal-dialog .btn.dark {
    background: #414141;
    color: white;
    padding: 13px 25px;
    border-radius: 10px;
    white-space: nowrap;
    font-size: var(--font-md);
    font-weight: 500;
    transition: background .2s, box-shadow .2s;
}

.modal-dialog .btn.dark:hover {
    background: #2f2f2f;
}

.modal-dialog .btn.dark:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px var(--modal-bg, #fff),
        0 0 0 4px rgba(0, 70, 184, .6);
}

.modal-dialog .actions {
    display: flex;
    justify-content: center;
    margin-top: 50px
}

.modal-dialog .btn.primary {
    width: 214px;
    background: #0046B8;
    color: white;
    padding: 14px 54px;
    border-radius: 10px;
    font-size: var(--font-xl);
    font-weight: 700;
    transform: translateY(0);
    transition: background .2s, transform .12s ease-out, box-shadow .2s;
    will-change: transform;
}

.modal-dialog .btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 70, 184, .25);
}

.modal-dialog .btn.primary:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px var(--modal-bg, #fff),
        0 0 0 4px rgba(0, 70, 184, .6);
}

.modal-dialog .btn.primary:disabled,
.modal-dialog .btn.primary[aria-disabled="true"] {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

.modal-dialog .note {
    margin-top: 20px;
    padding: 18px 26px;
    background: #F5F9FF;
    border-radius: 10px;
    color: #0046B8;
    font-size: var(--font-sm);
}

.modal-dialog .phone-line {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 0 16px;
    align-items: center;
}

.modal-dialog .phone-line .input {
    min-width: 0;
    width: auto;
}

.modal-dialog .select.tel-prefix {
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M15 1L7.88381 8L1 1.22858' stroke='%23707070' stroke-width='2' stroke-miterlimit='10' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
}

.modal-dialog select.tel-prefix::-ms-expand {
    display: none
}

.field.is-error .input,
.field.is-error .select {
    border-color: #d93025;
}

.field .error-msg {
    margin-top: 6px;
    font-size: 12px;
    color: #d93025;
    display: none;
    white-space: nowrap;
}

.field.is-error .error-msg {
    display: block;
}

@media (max-width:560px) {
    .receipt-modal .phone-line {
        grid-template-columns: 1fr;
    }
}

.receipt-modal .receipt-result .receipt-head {
    padding-bottom: 30px;
}

.receipt-modal .receipt-result .title {
    border-bottom: none;
    padding-bottom: 0;
}

.result-body {
    padding: 40px 50px 50px;
    border-top: 1px #D0D0D0 solid;
}

.result-section {
    padding-bottom: 15px;
    border-bottom: 1px #004ECE solid;
    margin-bottom: 25px;
}

.result-section-title {
    color: #0046B8;
    font-size: 26px;
    font-weight: 600;
    line-height: 36.4px;
}

.table-responsive {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 560px;
}

.result-table thead th {
    background: #F5F9FF;
    border-bottom: 1px #111 solid;
    font-weight: 600;
    font-size: var(--font-base);
    text-align: center;
    padding: 20px 10px;
    line-height: 1.5;
}

.result-table tbody tr {
    border-bottom: 1px #EAEEF2 solid;
}

.result-table th,
.result-table td {
    text-align: center;
    padding: 20px 10px;
    font-size: 15px;
    font-weight: 500;
    line-height: 24px;
    vertical-align: middle;
    white-space: nowrap;
}

.btn-issue {
    min-width: 97px;
    padding: 8px 20px;
    border: 0;
    border-radius: 10px;
    background: #0046B8;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 22.5px;
    cursor: pointer;
    transition: transform .12s ease, opacity .18s ease;
}

.btn-issue:hover {
    transform: translateY(-1px);
    opacity: .95;
}

.btn-issue:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px rgba(0, 70, 184, .6);
}

.btn-issue:active {
    transform: none;
}

.result-close {
    display: block;
    margin: 50px auto 0;
    padding: 13px 80px;
    background: white;
    color: #414141;
    border: 1px #D0D0D0 solid;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .18s ease, transform .12s ease;
}

.result-close:hover {
    background: #fafafa;
    transform: translateY(-1px);
}

.result-close:active {
    transform: none;
}

.result-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    #modal-receipt .modal {
        padding: 40px 16px;
    }

    #modal-receipt .modal-dialog {
        max-width: 680px;
        max-height: calc(100vh - 80px);
    }

    #modal-receipt .receipt-head {
        padding: 32px 36px 40px;
    }

    #modal-receipt .receipt-panel {
        padding: 24px 36px 36px;
    }

    #modal-receipt .receipt-modal .title {
        font-size: 28px;
    }

    #modal-receipt .modal-dialog .section-title {
        font-size: 20px;
    }

    #modal-receipt .modal-dialog .section-desc {
        font-size: 15px;
    }

    #modal-receipt .tab-list a {
        padding: 12px 22px;
        font-size: 15px;
    }

    #modal-receipt .tab-list li {
        flex: 1;
    }

    #modal-receipt .result-body {
        padding: 32px 36px 40px;
    }

    #modal-receipt .result-section-title {
        font-size: 22px;
        line-height: 1.4;
    }

    #modal-receipt .btn-issue {
        min-width: 90px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    #modal-receipt .modal {
        padding: 24px 12px;
    }

    #modal-receipt .modal-dialog {
        max-width: 560px;
        max-height: calc(100svh - 48px);
        border-radius: 12px;
    }

    #modal-receipt .modal-close {
        top: 18px;
        right: 18px;
        width: 20px;
        height: 20px;
    }

    #modal-receipt .receipt-head {
        padding: 28px 24px 28px;
        gap: 16px;
    }

    #modal-receipt .receipt-panel {
        padding: 20px 24px 28px;
    }

    #modal-receipt .receipt-modal .title {
        font-size: 24px;
        padding-bottom: 14px;
    }

    #modal-receipt .modal-dialog .section-title {
        font-size: 18px;
    }

    #modal-receipt .modal-dialog .section-desc {
        font-size: 14px;
    }

    #modal-receipt .tab-list {
        gap: 10px;
    }

    #modal-receipt .tab-list a {
        padding: 12px 16px;
        font-size: 14px;
    }

    #modal-receipt .modal-dialog .input,
    #modal-receipt .modal-dialog .select {
        height: 52px;
    }

    #modal-receipt .modal-dialog .phone-line {
        grid-template-columns: 120px 1fr auto;
        gap: 10px;
    }

    #modal-receipt .modal-dialog .btn.dark {
        padding: 12px 18px;
        font-size: 14px;
    }

    #modal-receipt .modal-dialog .actions {
        margin-top: 32px;
    }

    #modal-receipt .modal-dialog .btn.primary {
        width: 100%;
        padding: 14px 0;
        font-size: 18px;
    }

    #modal-receipt .result-body {
        padding: 24px 24px 28px;
    }

    #modal-receipt .result-section-title {
        font-size: 20px;
    }

    .result-table {
        min-width: 520px;
    }

    .result-table thead th {
        font-size: 14px;
        padding: 16px 8px;
    }

    .result-table th,
    .result-table td {
        font-size: 14px;
        line-height: 22px;
        padding: 14px 8px;
    }

    .btn-issue {
        min-width: 84px;
        font-size: 14px;
        padding: 8px 16px;
    }

    #modal-receipt .result-close {
        width: 100%;
        padding: 12px 0;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #modal-receipt .modal {
        padding: 0;
    }

    #modal-receipt .modal-dialog {
        width: 100%;
        max-width: none;
        border-radius: 0;
    }

    #modal-receipt .receipt-head {
        padding: 20px 16px 12px;
    }

    #modal-receipt .receipt-modal .title {
        font-size: 20px;
        padding-bottom: 12px;
    }

    #modal-receipt .receipt-modal .sub {
        font-size: 13px;
    }

    #modal-receipt .tab-list {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    #modal-receipt .tab-list a {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    #modal-receipt .receipt-panel {
        padding: 16px 16px 24px;
    }

    #modal-receipt .modal-dialog .input,
    #modal-receipt .modal-dialog .select {
        height: 48px;
    }

    #modal-receipt .modal-dialog .phone-line {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #modal-receipt .modal-dialog .btn.dark {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }

    #modal-receipt .modal-dialog .actions {
        margin-top: 24px;
    }

    #modal-receipt .modal-dialog .btn.primary {
        width: 100%;
        padding: 12px 0;
        font-size: 16px;
    }

    #modal-receipt .modal-dialog .note {
        font-size: 12px;
        padding: 14px;
    }

    #modal-receipt .result-body {
        padding: 16px;
    }

    .result-table {
        min-width: 460px;
    }
}
