:root {
    --purple-950: #21063f;
    --purple-900: #2d0754;
    --purple-800: #3b0c69;
    --purple-700: #4d1486;
    --purple-600: #6423a5;
    --purple-100: #f4eefb;
    --purple-50: #faf7fd;
    --ink-900: #231d2b;
    --ink-700: #514c58;
    --ink-500: #817b88;
    --line: #e4dfe9;
    --line-strong: #d3cbdc;
    --surface: #ffffff;
    --page: #f8f7fa;
    --success: #24883a;
    --success-soft: #f3fbf4;
    --danger: #d53939;
    --danger-soft: #fff5f5;
    --processing: #7151b7;
    --processing-soft: #f7f3ff;
    --shadow: 0 20px 55px rgba(42, 15, 65, 0.10);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink-900);
    background: radial-gradient(circle at 30% 0%, rgba(104, 40, 160, 0.035), transparent 35%), var(--page);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.crr-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.crr-header {
    position: relative;
    min-height: 122px;
    overflow: hidden;
    color: #fff;
    background-image: linear-gradient( 90deg, rgba(25, 3, 52, 1) 0%, rgba(30, 4, 61, 0.98) 28%, rgba(39, 7, 75, 0.88) 43%, rgba(48, 11, 82, 0.58) 62%, rgba(40, 8, 68, 0.28) 82%, rgba(27, 5, 48, 0.12) 100% ), var(--crr-header-photo);
    background-position: center, right center;
    background-size: 100% 100%, contain;
    background-repeat: no-repeat;
    background-color: #21043f;
    border-bottom: 6px solid #7134ad;
    box-shadow: 0 4px 14px rgba(30, 5, 55, 0.25);
}

.crr-header__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient( 180deg, rgba(12, 1, 27, 0.14) 0%, transparent 45%, rgba(18, 2, 37, 0.2) 100% );
}

.crr-header__inner {
    position: relative;
    z-index: 1;
    width: min(100% - 48px, 1320px);
    min-height: 142px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

.crr-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.crr-brand__logo {
    width: 236px;
    max-height: 82px;
    object-fit: contain;
    border-radius: 18px;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.crr-brand__copy {
    min-width: 0;
}

.crr-brand__name {
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 650;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.crr-brand__tagline {
    margin-top: 3px;
    font-size: 17px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.78);
}

.crr-contact {
    display: grid;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 12px;
    background: transparent;
}

.crr-contact__item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.icon-circle {
    width: 24px;
    height: 24px;
    padding: 5px;
    border-radius: 50%;
    color: #fff;
    background: #6a35b5;
    box-shadow: 0 4px 10px rgba(28, 4, 55, 0.35);
}

.crr-main {
    flex: 1;
}

.page-section {
    width: min(100% - 48px, 1320px);
    margin: 0 auto;
    padding: 36px 0 24px;
}

.page-heading {
    margin-bottom: 28px;
}

    .page-heading h1 {
        margin: 0 0 2px;
        color: var(--purple-950);
        font-size: clamp(31px, 3vw, 40px);
        line-height: 1.2;
        letter-spacing: -0.035em;
    }

    .page-heading p {
        margin: 8px 0 0;
        color: var(--ink-700);
        font-size: 17px;
    }

.workflow-card,
.access-card {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.workflow-steps {
    min-height: 76px;
    display: grid;
    grid-template-columns: 1fr minmax(150px, 310px) 1fr;
    align-items: center;
    gap: 24px;
    padding: 0 110px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
}

.workflow-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #aaa5ad;
    font-weight: 650;
    transition: color 0.25s ease;
}

.workflow-step__number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #67616c;
    background: #efedf0;
    font-weight: 700;
    transition: all 0.25s ease;
}

.workflow-step.is-active {
    color: var(--purple-700);
}

    .workflow-step.is-active .workflow-step__number {
        color: #fff;
        background: linear-gradient(145deg, var(--purple-600), var(--purple-800));
        box-shadow: 0 8px 18px rgba(77, 20, 134, 0.24);
    }

.workflow-progress {
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #ece8ef;
}

    .workflow-progress span {
        display: block;
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #6927a7, #441276);
        transition: width 0.35s ease;
    }

        .workflow-progress span.is-complete {
            width: 100%;
        }

.workflow-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.form-section,
.result-section {
    position: relative;
    min-width: 0;
    padding: 34px 32px 30px;
}

.form-section {
    border-right: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--purple-800);
}

    .section-heading h2 {
        margin: 0;
        font-size: 18px;
        line-height: 1.3;
    }

.section-heading__icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
}

.form-fields {
    display: grid;
    grid-template-columns: 1.25fr 1.25fr 0.9fr;
    gap: 18px 20px;
}

.form-field {
    min-width: 0;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #3e3745;
    font-size: 14px;
    font-weight: 650;
}

.form-field input,
.form-field select {
    width: 100%;
    height: 49px;
    padding: 0 14px;
    color: var(--ink-900);
    border: 1px solid #cfc9d4;
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-field select {
    cursor: pointer;
}

.form-field input::placeholder {
    color: #aaa4ae;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--purple-600);
    box-shadow: 0 0 0 4px rgba(100, 35, 165, 0.11);
}

.form-field.has-error input,
.form-field.has-error select {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(213, 57, 57, 0.09);
}

.input-shell {
    position: relative;
}

    .input-shell input {
        padding-left: 48px;
    }

.input-shell__icon {
    position: absolute;
    z-index: 1;
    left: 15px;
    top: 50%;
    width: 23px;
    height: 23px;
    color: #7e7881;
    transform: translateY(-50%);
    pointer-events: none;
}

.field-error {
    min-height: 16px;
    display: block;
    margin-top: 4px;
    color: var(--danger);
    font-size: 12px;
}

.accepted-cards {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #77717c;
    font-size: 13px;
}

.payment-badge {
    min-width: 48px;
    height: 27px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfd9e4;
    border-radius: 5px;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(28, 15, 39, 0.05);
}

.payment-badge--visa {
    color: #1451a4;
    font-size: 13px;
    font-style: italic;
}

.payment-badge--amex {
    color: #0b75b9;
    font-size: 9px;
}

.payment-badge--discover {
    color: #272326;
    font-size: 8px;
}

.payment-badge--mastercard {
    position: relative;
    min-width: 50px;
}

    .payment-badge--mastercard i {
        position: absolute;
        width: 16px;
        height: 16px;
        border-radius: 50%;
    }

        .payment-badge--mastercard i:first-child {
            left: 13px;
            background: #e5252a;
        }

        .payment-badge--mastercard i:last-child {
            right: 13px;
            background: rgba(246, 151, 32, 0.88);
        }

.secure-note {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #69636e;
    font-size: 13px;
}

.secure-note__shield {
    width: 35px;
    height: 35px;
    padding: 8px;
    flex: 0 0 35px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, #6a2ca3, #431272);
    box-shadow: 0 7px 14px rgba(77, 20, 134, 0.20);
}

.form-actions {
    margin-top: 26px;
    display: flex;
    gap: 18px;
}

.button {
    min-width: 184px;
    min-height: 52px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 650;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease, background .16s ease;
}

    .button:hover {
        transform: translateY(-1px);
    }

    .button:active {
        transform: translateY(0);
    }

.button--primary {
    color: #fff;
    background: linear-gradient(180deg, #6828a4, #441276);
    box-shadow: 0 9px 18px rgba(74, 18, 126, 0.20);
}

    .button--primary:hover {
        box-shadow: 0 12px 22px rgba(74, 18, 126, 0.26);
    }

.button--secondary {
    color: #39323f;
    border-color: #cfc9d5;
    background: #fff;
}

    .button--secondary:hover {
        background: #faf8fc;
    }

.button__icon {
    width: 22px;
    height: 22px;
}

button:disabled,
input:disabled,
select:disabled {
    cursor: not-allowed;
}

button:disabled {
    transform: none;
    opacity: 0.6;
}

input:disabled,
select:disabled {
    color: #7e7882;
    background: #f3f1f4;
}

.form-helper {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #77717c;
    font-size: 12px;
}

.helper-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 20px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: #706a75;
    font-size: 12px;
    font-weight: 700;
}

.form-processing-overlay {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 11px;
    color: var(--purple-800);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(1.8px);
}

.form-section.is-processing .form-processing-overlay {
    display: flex;
}

.small-spinner,
.large-spinner {
    border-radius: 50%;
    animation: crr-spin .8s linear infinite;
}

.small-spinner {
    width: 35px;
    height: 35px;
    border: 4px solid rgba(100, 35, 165, 0.15);
    border-top-color: var(--purple-600);
}

.large-spinner {
    width: 58px;
    height: 58px;
    margin: 2px auto 18px;
    border: 5px solid rgba(113, 81, 183, 0.16);
    border-top-color: var(--processing);
}

@keyframes crr-spin {
    to {
        transform: rotate(360deg);
    }
}

.result-state {
    display: none;
}

    .result-state.is-active {
        display: block;
        animation: result-in .22s ease-out;
    }

@keyframes result-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-hero {
    min-height: 174px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border: 1px solid;
    border-radius: 13px;
}

    .result-hero h3 {
        margin: 10px 0 6px;
        font-size: 23px;
        line-height: 1.25;
    }

    .result-hero p {
        max-width: 540px;
        margin: 0;
        color: var(--ink-700);
        font-size: 14px;
    }

.result-hero--ready {
    color: var(--purple-800);
    border-color: #d8cce4;
    background: linear-gradient(135deg, #fbf9fd, #f6f1fb);
}

.result-hero--processing {
    color: var(--processing);
    border-color: #d8cef0;
    background: var(--processing-soft);
}

.result-hero--success {
    color: #185e28;
    border-color: #8ccc97;
    background: linear-gradient(135deg, #fbfffb, var(--success-soft));
}

.result-hero--failed {
    color: #a62424;
    border-color: #eba7a7;
    background: linear-gradient(135deg, #fffafa, var(--danger-soft));
}

.result-icon {
    width: 58px;
    height: 58px;
}

.result-icon--ready {
    color: var(--purple-600);
}

.result-icon--success {
    color: var(--success);
}

.result-icon--failed {
    color: var(--danger);
}

.result-details {
    margin-top: 16px;
    padding: 15px 20px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

    .result-details > div {
        display: grid;
        grid-template-columns: 115px 1fr;
        gap: 10px;
        padding: 7px 0;
        color: #5d5762;
        font-size: 14px;
    }

    .result-details span {
        font-weight: 600;
    }

    .result-details strong {
        color: #514b56;
        font-weight: 500;
    }

    .result-details .text-success {
        color: var(--success);
        font-weight: 700;
    }

    .result-details .text-failed {
        color: var(--danger);
        font-weight: 700;
    }

    .result-details .text-processing {
        color: var(--processing);
        font-weight: 700;
    }

.result-footnote {
    margin-top: 24px;
    padding: 19px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #79727d;
    border-top: 1px dashed #d8d2dc;
    font-size: 13px;
}

.clock-icon {
    width: 23px;
    height: 23px;
    color: #8b8590;
}

.error-preview-note {
    min-height: 72px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #5e5762;
    border: 1px solid #ef9b9b;
    border-radius: 11px;
    background: #fffafa;
    font-size: 13px;
}

    .error-preview-note > span:first-child {
        width: 27px;
        height: 27px;
        flex: 0 0 27px;
        color: #e23e3e;
    }

.crr-footer {
    padding: 30px 24px 34px;
}

.crr-footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #77717d;
    font-size: 12px;
}

.footer-lock {
    width: 23px;
    height: 23px;
    color: var(--purple-700);
}

.crr-footer__divider {
    width: 1px;
    height: 18px;
    background: #cfc9d4;
}

/* Access page */
.access-card {
    min-height: 620px;
    padding: 50px clamp(24px, 8vw, 160px) 38px;
    text-align: center;
}

.access-shield {
    width: 112px;
    height: 112px;
    margin: 0 auto 24px;
    padding: 24px;
    color: var(--purple-700);
    border: 1px solid #ddd3e9;
    border-radius: 50%;
    background: radial-gradient(circle, #f3ecfa 0 52%, transparent 53%), repeating-radial-gradient(circle, transparent 0 45px, rgba(109, 45, 165, 0.12) 46px 47px);
    box-shadow: 0 8px 24px rgba(77, 20, 134, 0.10);
}

.access-alert {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 34px;
    display: grid;
    grid-template-columns: 74px 1fr;
    align-items: center;
    gap: 28px;
    text-align: left;
    border: 1px solid #cfc0e0;
    border-radius: 15px;
    background: linear-gradient(90deg, #faf7fd, #fdfcff);
}

.access-alert__icon {
    width: 62px;
    height: 62px;
    padding: 14px;
    color: var(--purple-700);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 22px rgba(77, 20, 134, 0.10);
}

.access-alert h2 {
    margin: 0 0 3px;
    color: var(--purple-950);
    font-size: 23px;
    line-height: 1.3;
}

.access-alert p {
    margin: 0 0 8px;
    color: var(--purple-950);
    font-size: 19px;
    font-weight: 650;
}

.access-alert span {
    color: var(--ink-700);
    font-size: 14px;
}

.access-return {
    margin-top: 24px;
}

.access-divider {
    max-width: 960px;
    margin: 34px auto 27px;
    display: grid;
    grid-template-columns: 1fr 43px 1fr;
    align-items: center;
    gap: 16px;
}

    .access-divider > span {
        height: 1px;
        background: #e1dce5;
    }

    .access-divider i {
        width: 43px;
        height: 43px;
        padding: 12px;
        color: #a09aa3;
        border-radius: 50%;
        background: #f7f5f8;
    }

.access-info {
    max-width: 960px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    color: #6c6670;
    border: 1px solid #eeeaf1;
    border-radius: 12px;
    background: #fbfafc;
}

    .access-info p {
        margin: 0;
        font-size: 14px;
    }


.result-details--success strong {
    overflow-wrap: anywhere;
}

.charge-summary {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(180deg, #ffffff, #fbfafc);
}

.charge-summary__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.charge-summary__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: var(--purple-600);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.charge-summary__header h4 {
    margin: 0;
    color: var(--ink-900);
    font-size: 18px;
}

.charge-summary__total {
    min-width: 150px;
    text-align: right;
}

.charge-summary__total span {
    display: block;
    color: #716b76;
    font-size: 11px;
}

.charge-summary__total strong {
    display: block;
    margin-top: 3px;
    color: var(--success);
    font-size: 22px;
    line-height: 1.2;
}

.charge-summary__list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.charge-item {
    padding: 14px;
    border: 1px solid #ded9e3;
    border-left: 4px solid var(--success);
    border-radius: 10px;
    background: #fff;
}

.charge-item--failed {
    border-left-color: var(--danger);
    background: #fffafa;
}

.charge-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.charge-item__category {
    margin: 0;
    color: var(--ink-900);
    font-size: 14px;
    font-weight: 750;
}

.charge-item__description {
    margin: 4px 0 0;
    color: #6f6873;
    font-size: 12px;
    line-height: 1.45;
}

.charge-item__amount {
    color: var(--ink-900);
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.charge-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 10px;
    color: #766f7a;
    font-size: 11px;
}

.charge-item__status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    color: #176436;
    border-radius: 999px;
    background: #e7f7ed;
    font-weight: 800;
}

.charge-item--failed .charge-item__status {
    color: #a62424;
    background: #ffe9e9;
}

.charge-item__failure {
    margin: 10px 0 0;
    padding-top: 9px;
    color: #a62424;
    border-top: 1px dashed #ecc1c1;
    font-size: 12px;
    line-height: 1.45;
}

.charge-summary__empty {
    padding: 18px;
    color: #6f6873;
    border: 1px dashed #d8d2dc;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 13px;
}

.confirmation-notice {
    margin-top: 14px;
    padding: 11px 13px;
    color: #4f4954;
    border-radius: 9px;
    background: #f2eef7;
    font-size: 12px;
    line-height: 1.45;
}

.confirmation-notice.is-warning {
    color: #8b3a18;
    background: #fff3e8;
}

@media (max-width: 1050px) {
    .crr-header__inner {
        width: min(100% - 32px, 1320px);
    }

    .crr-brand__copy {
        display: none;
    }

    .workflow-steps {
        padding: 0 45px;
    }

    .workflow-columns {
        grid-template-columns: 1fr;
    }

    .form-section {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 760px) {
    .charge-summary__header,
    .charge-item__top {
        flex-direction: column;
    }

    .charge-summary__total {
        min-width: 0;
        text-align: left;
    }

    .crr-header {
        min-height: auto;
        background-size: cover;
    }

    .crr-header__inner {
        min-height: 0;
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .crr-brand__logo {
        width: min(230px, 72vw);
    }

    .crr-contact {
        gap: 5px;
    }

    .crr-contact__item {
        font-size: 13px;
    }

    .page-section {
        width: min(100% - 24px, 1320px);
        padding-top: 26px;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .workflow-progress {
        width: 3px;
        height: 30px;
        margin: 0 auto;
    }

        .workflow-progress span.is-complete {
            width: 100%;
            height: 100%;
        }

    .form-section,
    .result-section {
        padding: 28px 20px;
    }

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

    .form-field--full {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .result-details > div {
        grid-template-columns: 90px 1fr;
    }

    .crr-footer__inner {
        flex-wrap: wrap;
        text-align: center;
    }

    .access-card {
        min-height: 0;
        padding: 36px 18px;
    }

    .access-alert {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .access-alert__icon {
        margin: 0 auto;
    }
}
