.service-price-scroll {
    overflow-x: auto;
}

.service-price-table {
    min-width: 700px;
}

.service-price-table th,
.service-price-table td {
    vertical-align: middle;
}

.service-price-section table.service-price-table thead th {
    color: #000 !important;
}

.service-price-table .service-product-name {
    font-weight: normal;
}

.service-price-choice {
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.service-price-choice strong {
    font-size: 1.5em;
    font-weight: 800;
}

.service-price-choice em {
    display: block;
    width: 58px;
    margin: 9px auto 0;
    padding: 5px 0;
    border-radius: 15px;
    background: #ecb247;
    color: #30250f;
    font-size: 12px;
    font-style: normal;
    font-weight: normal;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(236, 178, 71, 0.24);
}

.service-price-choice:hover em,
.service-price-choice:focus-visible em {
    background: #d69a2e;
}

.service-price-choice:hover,
.service-price-choice:focus-visible {
    color: #2362ff;
    outline: none;
}

.service-price-choice:focus-visible {
    outline: 2px solid #2362ff;
    outline-offset: 5px;
}

.service-price-view {
    display: block;
    cursor: default;
}

.service-price-view:hover {
    color: inherit;
}

.service-price-action {
    margin-top: 32px;
    text-align: center;
}

.service-apply-main {
    width: auto;
    min-width: 220px;
    min-height: 58px;
    padding: 0 38px;
    border: 0;
    border-radius: 30px;
    background: #ecb247;
    color: #30250f;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 9px 25px rgba(236, 178, 71, 0.24);
    transition: background-color 0.2s, transform 0.2s;
}

.service-apply-main:hover,
.service-apply-main:focus-visible {
    background: #d69a2e;
    outline: none;
    transform: translateY(-1px);
}

.service-empty {
    padding: 60px 20px;
    border-radius: 14px;
    background: #f6f7f8;
    color: #6c737c;
    text-align: center;
}

.service-apply-layer {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.service-apply-layer.is-open {
    display: flex;
}

.service-apply-dim {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 23, 0.72);
    backdrop-filter: blur(3px);
}

.service-apply-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

#serviceApplyFormView {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
}

#serviceApplyFormView[hidden],
.service-apply-complete[hidden] {
    display: none;
}

.service-apply-close {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 42px;
    cursor: pointer;
}

.service-apply-header {
    padding: 36px 45px 32px;
    background: linear-gradient(135deg, #173d36 0%, #245a4e 100%);
    color: #fff;
}

.service-apply-header > span {
    color: #9fd2c4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.service-apply-header h2 {
    margin: 9px 0 8px;
    color: #fff;
    font-size: 30px;
}

.service-apply-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

#serviceApplyForm {
    min-height: 0;
    margin-right: 6px;
    padding: 12px 45px 42px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.service-form-section {
    padding: 28px 0;
    border-bottom: 1px solid #e8ebee;
}

.service-form-section h3 {
    margin: 0 0 18px;
    color: #202832;
    font-size: 17px;
}

.service-form-section h3 span {
    margin-right: 8px;
    color: #2a806b;
    font-size: 13px;
}

.service-form-grid.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.service-field {
    display: block;
}

.service-field > span,
.service-field legend,
.service-pay-method legend {
    display: block;
    margin-bottom: 8px;
    color: #49525c;
    font-size: 13px;
    font-weight: 700;
}

.service-field select,
.service-field input[type="text"],
.service-field input[type="tel"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    background: #fff;
    color: #202832;
    font-size: 15px;
    box-sizing: border-box;
}

.service-field select:focus,
.service-field input:focus {
    border-color: #2a806b;
    outline: 2px solid rgba(42, 128, 107, 0.12);
}

.service-period {
    margin-top: 18px;
    padding: 0;
    border: 0;
}

.service-period > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.service-period label,
.service-pay-method label {
    position: relative;
    cursor: pointer;
}

.service-period input,
.service-pay-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-period label span {
    display: block;
    padding: 12px 6px;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    text-align: center;
    transition: 0.2s;
}

.service-period input:checked + span {
    border-color: #245a4e;
    background: #245a4e;
    color: #fff;
    font-weight: 700;
}

.service-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 10px;
    background: #f2f7f5;
}

.service-total span {
    color: #56605f;
    font-size: 14px;
}

.service-total strong {
    color: #173d36;
    font-size: 24px;
}

.service-pay-method {
    margin: 0;
    padding: 0;
    border: 0;
}

.service-pay-method > div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-pay-method label > span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62px;
    padding: 10px 16px;
    border: 1px solid #d9dee3;
    border-radius: 9px;
    color: #323b45;
    font-size: 14px;
    font-weight: 700;
    box-sizing: border-box;
}

.service-pay-method label small {
    margin-top: 3px;
    color: #8b9299;
    font-size: 11px;
    font-weight: 400;
}

.service-pay-method input:checked + span {
    border-color: #2a806b;
    background: #edf7f4;
    color: #1c614f;
    box-shadow: inset 0 0 0 1px #2a806b;
}

.service-bank-info {
    display: none;
    margin-top: 14px;
    padding: 15px 17px;
    border: 1px solid #dfd8c3;
    border-radius: 8px;
    background: #fffbef;
    color: #4c4635;
    font-size: 14px;
}

.service-depositor-field {
    display: none;
    margin-top: 14px;
}

.service-depositor-field.is-visible {
    display: block;
}

.service-bank-info.is-visible {
    display: block;
}

.service-bank-info b {
    margin-right: 8px;
}

.service-bank-info small {
    display: block;
    margin-top: 7px;
    color: #7d7560;
}

.service-terms {
    max-height: 110px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    background: #fafbfc;
    color: #67717b;
    font-size: 12px;
    line-height: 1.65;
}

.service-agree {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    color: #343c45;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.service-agree input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #245a4e;
}

.service-form-error {
    display: none;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #fff0f0;
    color: #b52e2e;
    font-size: 13px;
}

.service-form-error.is-visible {
    display: block;
}

.service-submit,
.service-complete-close {
    width: 100%;
    height: 56px;
    margin-top: 22px;
    border: 0;
    border-radius: 9px;
    background: #173d36;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.service-submit:hover,
.service-submit:focus-visible,
.service-complete-close:hover,
.service-complete-close:focus-visible {
    background: #0e2e29;
    outline: none;
}

.service-submit:disabled {
    opacity: 0.58;
    cursor: wait;
}

.service-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.service-apply-complete {
    min-height: 0;
    margin-right: 6px;
    padding: 62px 48px 50px;
    overflow-y: auto;
    text-align: center;
}

.service-complete-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #1f8b67;
    color: #fff;
    font-size: 42px;
    line-height: 72px;
    font-weight: 700;
}

.service-apply-complete h2 {
    margin: 0 0 12px;
    color: #1e2730;
    font-size: 27px;
}

.service-apply-complete > p {
    margin: 0;
    color: #69727b;
    line-height: 1.7;
}

.service-apply-complete dl {
    margin: 28px 0 0;
    padding: 0;
    border-top: 1px solid #e5e8eb;
}

.service-apply-complete dl > div {
    display: grid;
    grid-template-columns: 100px 1fr;
    padding: 14px 6px;
    border-bottom: 1px solid #e5e8eb;
    text-align: left;
}

.service-apply-complete dt {
    color: #747d86;
}

.service-apply-complete dd {
    margin: 0;
    color: #253039;
    font-weight: 700;
    overflow-wrap: anywhere;
}

body.service-layer-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .service-apply-layer {
        align-items: stretch;
        padding: 0;
    }

    .service-apply-dialog {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    #serviceApplyFormView {
        flex: 1 1 auto;
        height: 100%;
        max-height: none;
    }

    .service-apply-header {
        padding: 28px 24px 24px;
    }

    .service-apply-header h2 {
        font-size: 25px;
    }

    .service-apply-close {
        top: 12px;
        right: 14px;
    }

    #serviceApplyForm {
        flex: 1 1 auto;
        padding: 5px 24px 32px;
    }

    .service-form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .service-period > div {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-pay-method > div {
        grid-template-columns: 1fr;
    }

    .service-price-choice strong {
        font-size: 1.2em;
    }

    .service-apply-complete {
        flex: 1 1 auto;
        padding: 55px 24px 35px;
    }
}
