:root {
    --co-plum: #29074A; /* Intrum Purple 100 - dark header */
    --co-plum-soft: #4A2866; /* supporting dark purple */
    --co-purple: #8750E5; /* Intrum Purple 60 - primary accent */
    --co-purple-dark: #6F3BC7; /* hover/focus */
    --co-purple-soft: #F3EDFC; /* light purple backgrounds */
    --co-muted: #9A8AA6;
    --co-body: #F7F5F9;
    --co-brand: #8750E5;
    --co-danger: #bc0024;
}

body {
    font-size: 14px;
    background: var(--co-body);
    color: var(--co-plum);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.co-topbar {
    background: var(--co-plum);
    flex-shrink: 0;
}

.co-header {
    height: 64px;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

    .co-header .logo {
        display: inline-flex;
        align-items: center;
        margin: 0;
        padding: 0;
        text-decoration: none;
        grid-column: 1;
        justify-self: start;
    }

        .co-header .logo img {
            height: 28px;
            width: auto;
            display: block;
            /* Source SVG is drawn in black; inverted to read on the now-plum header background. */
            filter: brightness(0) invert(1);
        }

/* STEP INDICATOR */
.steps-bar {
    grid-column: 2;
    display: flex;
    justify-content: center;
}

.steps {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

    .steps .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--co-plum-soft);
    border: 2px solid var(--co-plum-soft);
    color: var(--co-muted);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Completed steps are filled; the current step is outlined so it never looks "already done". */
.step.done .step-circle {
    background: var(--co-purple);
    border-color: var(--co-purple);
    color: #fff;
}

.step.active .step-circle {
    background: var(--co-purple);
    border-color: var(--co-purple);
    color: #fff;
}

.step-label {
    font-size: 11px;
    color: var(--co-muted);
    white-space: nowrap;
}

.step.active .step-label {
    color: #fff;
    font-weight: 600;
}

.step.done .step-label {
    color: #D8C9DE;
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--co-plum-soft);
    margin-bottom: 16px;
    list-style: none;
}

    .step-line.done {
        background: var(--co-purple);
    }

.guide-label {
    background: var(--co-plum);
    color: #D8C9DE;
    font-size: 12px;
    text-align: center;
    padding: 8px 0;
}

/* MAIN */
.co-main {
    flex: 1;
    width: 100%;
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

    .co-main.co-main-wide {
        max-width: 1080px;
    }

.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.page-subtitle {
    text-align: center;
    color: #6B5A73;
    margin-bottom: 28px;
}

/* CARDS */
.co-card {
    background: #fff;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(59, 31, 69, 0.08);
    margin-bottom: 24px;
}

.co-card-header {
    background: var(--co-purple-soft);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.co-card-body {
    padding: 24px;
}

.co-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--co-plum);
    padding: 16px 24px;
    border-bottom: 1px solid #F0E9F2;
}

.package-icon {
    width: 52px;
    height: 52px;
    background: var(--co-purple-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.package-name {
    font-size: 20px;
    font-weight: 800;
}

.package-tagline {
    font-size: 13px;
    color: #6B5A73;
}

.co-badge {
    background: var(--co-purple);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* PACKAGE SELECTION (step 1) */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
}

.package-choice {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

    .package-choice .co-card-header {
        min-height: 108px;
        align-items: center;
    }

    .package-choice .co-card-body {
        flex: 1;
    }

.package-description {
    font-size: 13px;
    color: #6B5A73;
}

.package-facts {
    margin: 0 0 16px;
    font-size: 13px;
}

    .package-facts > div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border-bottom: 1px solid #F0E9F2;
    }

    .package-facts dt {
        font-weight: 500;
        color: #6B5A73;
    }

    .package-facts dd {
        margin: 0;
        font-weight: 700;
        text-align: right;
    }

.package-price .amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--co-purple);
}

.package-price .period {
    display: block;
    font-size: 12px;
    color: #9A8AA0;
}

.detail-icon {
    width: 36px;
    height: 36px;
    background: var(--co-purple-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9A8AA0;
    font-weight: 600;
}

.detail-value {
    font-size: 16px;
    font-weight: 700;
}

.price-amount {
    font-size: 32px;
    font-weight: 800;
}

.price-suffix {
    font-size: 14px;
    color: #6B5A73;
}

/* FORMS */
.co-card .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B5A73;
}

.co-card .form-control,
.co-card .form-select {
    border-radius: 8px;
}

    .co-card .form-control:disabled,
    .co-card .form-control[readonly],
    .co-card .form-select:disabled {
        background-color: #F0EAF3;
        color: #9A8AA6;
        cursor: not-allowed;
    }

.locked-hint {
    font-size: 11px;
    color: #9A8AA0;
}

/* SIGNATURE */
.signature-box {
    border: 1px dashed #D8C9DE;
    border-radius: 8px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FBF9FC;
    padding: 12px;
}

.signature-text {
    font-family: 'Segoe Script', 'Brush Script MT', cursive;
    font-style: italic;
    font-size: 24px;
    color: var(--co-plum);
    text-align: center;
    word-break: break-word;
}

.sig-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #9A8AA0;
    font-weight: 600;
    margin-top: 8px;
}

/* CVR LOOKUP */
.cvr-input-group .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    min-width: 46px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

    .cvr-input-group .btn .spinner-border {
        color: var(--co-purple);
    }

.cvr-result {
    margin-top: 8px;
    border: 1px solid #E9E2F0;
    border-radius: 8px;
    background: var(--co-purple-soft);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--co-plum);
    cursor: pointer;
}

    .cvr-result:hover {
        border-color: var(--co-purple);
    }

.cvr-result-name {
    font-weight: 700;
    margin-bottom: 2px;
}

.cvr-result-status {
    color: var(--co-muted);
    margin-top: 4px;
}

.cvr-result-error {
    background: #FDECEC;
    border-color: #F3C9C9;
    color: #8B2C2C;
    cursor: default;
}

    .cvr-result-error:hover {
        border-color: #F3C9C9;
    }

/* RECEIPT */
.receipt-card {
    text-align: left;
    margin: 0 auto;
}

.receipt-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.receipt-check {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E6F0E9;
    color: #1E7B45;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.receipt-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--co-plum);
    margin: 0 0 6px;
}

.receipt-lead {
    color: var(--co-plum-soft);
}

.receipt-reference {
    font-size: 13px;
    color: var(--co-muted);
}

    .receipt-reference span {
        color: var(--co-plum);
        word-break: break-all;
    }

.receipt-section {
    border: 1px solid #E9E2F0;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 16px;
}

.receipt-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--co-plum);
    margin: 0 0 14px;
}

.receipt-details {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.receipt-details-grid {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
}

.receipt-field .detail-value {
    padding-bottom: 8px;
    border-bottom: 1px solid #EFE9F5;
}

.receipt-status {
    display: inline-block;
    background: #E6F0E9;
    color: #1E7B45;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 600;
}

.receipt-doc-art {
    flex: 0 0 auto;
    position: relative;
    width: 84px;
    height: 100px;
}

.receipt-doc-icon {
    width: 84px;
    height: 100px;
    background: var(--co-purple-soft);
    border: 1.5px solid #E9E2F0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
    gap: 6px;
    box-sizing: border-box;
}

    .receipt-doc-icon .doc-line {
        height: 3px;
        background: #D9CEEA;
        border-radius: 2px;
        width: 100%;
    }

        .receipt-doc-icon .doc-line.short {
            width: 65%;
        }

    .receipt-doc-icon .doc-brand {
        margin-top: auto;
        font-size: 11px;
        font-style: italic;
        color: #1a1a1a;
        font-weight: 600;
    }

.receipt-doc-art-badge {
    position: absolute;
    right: -4px;
    bottom: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #1E7B45;
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}

.receipt-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.receipt-file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.receipt-file-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #FDECEC;
    color: #C0392B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .receipt-file-icon.guide {
        background: var(--co-purple-soft);
        color: var(--co-purple);
    }

.receipt-file-name {
    font-weight: 600;
    color: var(--co-plum);
    word-break: break-word;
}

.receipt-guide {
    margin-top: 16px;
    border: 1px solid #E9E2F0;
    border-radius: 10px;
    padding: 12px 16px;
}

.receipt-guide-download {
    color: var(--co-purple);
    font-size: 18px;
    text-decoration: none;
}

.receipt-guide + .receipt-guide {
    margin-top: 10px;
}

@media (max-width: 767.98px) {
    .receipt-details-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .receipt-doc-art {
        display: none;
    }
}

/* BUTTONS */
.btn-co-primary {
    background: var(--co-purple);
    border-color: var(--co-purple);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 20px;
}

    .btn-co-primary:hover,
    .btn-co-primary:focus {
        background: var(--co-purple-dark);
        border-color: var(--co-purple-dark);
        color: #fff;
    }

    .btn-co-primary:disabled {
        background: #C9AED0;
        border-color: #C9AED0;
    }

.btn-co-secondary {
    background: #fff;
    border: 1px solid #D8C9DE;
    color: var(--co-plum);
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 20px;
}

    .btn-co-secondary:hover {
        background: #F0E9F2;
    }

/* FOOTER */
.co-footer {
    padding: 24px 0 40px;
    color: #9A8AA0;
    font-size: 12px;
    flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 767.98px) {
    .co-header {
        padding: 0 16px;
    }

    .step-line {
        width: 24px;
    }

    .step-label {
        font-size: 10px;
    }

    .page-title {
        font-size: 22px;
    }
}
