.terms-accept {
    margin-bottom: 16px;
}

.terms-accept__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.terms-accept__label:hover {
    border-color: rgba(var(--primary-color-rgb), 0.45);
    background: #fff;
}

.terms-accept__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.terms-accept__box {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 2px solid #c4c4c4;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.terms-accept__tick {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 12px;
    height: 10px;
    stroke: #fff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 16;
    stroke-dashoffset: 16;
    opacity: 0;
    transition: stroke-dashoffset 0.22s ease, opacity 0.15s ease;
}

.terms-accept__text {
    flex: 1;
    font-size: 15px;
    line-height: 1.45;
    color: #222;
}

.terms-accept__text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-accept__text a:hover {
    color: var(--primary-color-dark);
}

.terms-accept__input:focus-visible + .terms-accept__box {
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.25);
    border-color: var(--primary-color);
}

.terms-accept__input:checked + .terms-accept__box {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.04);
}

.terms-accept__input:checked + .terms-accept__box .terms-accept__tick {
    opacity: 1;
    stroke-dashoffset: 0;
}

.terms-accept__label:has(.terms-accept__input:checked) {
    border-color: rgba(var(--primary-color-rgb), 0.5);
    background: rgba(var(--primary-color-rgb), 0.06);
    box-shadow: 0 0 0 1px rgba(var(--primary-color-rgb), 0.08);
}

.terms-page {
    max-width: 820px;
    padding: 40px 20px 24px;
}

.terms-page__intro {
    margin: 0 0 36px;
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}

.terms-page__title {
    margin: 0 0 18px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    text-align: left;
}

.terms-page__title--spaced {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.terms-page__section {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.terms-page__section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.terms-page__section h3 {
    margin: 0 0 14px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
}

.terms-page__section p {
    margin: 0 0 12px;
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    text-align: left;
}

.terms-page__section p:last-child {
    margin-bottom: 0;
}

.terms-page__content {
    text-align: left;
}

.terms-page__content p,
.terms-page__content .terms-page__body {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.65;
    color: #333;
    text-align: left;
}

.terms-page__content p:last-child,
.terms-page__content .terms-page__body:last-child {
    margin-bottom: 0;
}

.terms-page__content h3 {
    margin: 36px 0 18px;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
    text-align: left;
}

@media (max-width: 767px) {
    .terms-page__content p,
    .terms-page__content .terms-page__body {
        font-size: 15px;
    }

    .terms-page__content h3 {
        font-size: 18px;
    }
}

.terms-page__links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.terms-page__links a {
    display: block;
    padding: 14px 16px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    background: #fafafa;
    color: #111;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.terms-page__links a:hover {
    border-color: rgba(var(--primary-color-rgb), 0.45);
    background: #fff;
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .terms-page {
        padding: 24px 16px 8px;
    }

    .terms-page__intro {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .terms-page__title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .terms-page__section h3 {
        font-size: 18px;
    }

    .terms-page__section p,
    .terms-page__body {
        font-size: 15px;
    }

    .terms-page__links a {
        font-size: 15px;
    }
}

.payment-options {
    margin: 0 0 16px;
}

.payment-options__title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.payment-options__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.payment-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 14px 12px;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    user-select: none;
}

.payment-option:hover {
    border-color: rgba(var(--primary-color-rgb), 0.45);
    background: #fff;
}

.payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(var(--primary-color-rgb), 0.12);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.payment-option__title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.payment-option__desc {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
}

.payment-option__amount {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.payment-option__check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border: 2px solid #c4c4c4;
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.payment-option__check::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: transparent;
    transition: background-color 0.2s ease;
}

.payment-option:has(input:checked),
.payment-option.is-selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.07);
    box-shadow: 0 0 0 1px rgba(var(--primary-color-rgb), 0.18);
}

.payment-option:has(input:checked) .payment-option__check,
.payment-option.is-selected .payment-option__check {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.payment-option:has(input:checked) .payment-option__check::after,
.payment-option.is-selected .payment-option__check::after {
    background: #fff;
}

.success-payment-notice {
    max-width: 600px;
    margin: 0 auto 24px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-color-rgb), 0.25);
    background: rgba(var(--primary-color-rgb), 0.08);
    text-align: center;
}

.success-payment-notice__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.success-payment-notice__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #333;
}

@media (max-width: 767px) {
    .payment-options__grid {
        grid-template-columns: 1fr;
    }
}
