.scxcr-form-wrap {
    box-sizing: border-box;
    max-width: 820px;
    min-width: 0;
    --scxcr-primary: #0f766e;
    --scxcr-primary-hover: #115e59;
    --scxcr-primary-text: #ffffff;
    --scxcr-accent: #14b8a6;
    --scxcr-heading: #172033;
    --scxcr-surface: #f8fafc;
}

.scxcr-course-comparison {
    box-sizing: border-box;
    max-width: 1120px;
    min-width: 0;
    --scxcr-primary: #0f766e;
    --scxcr-primary-hover: #115e59;
    --scxcr-primary-text: #ffffff;
    --scxcr-accent: #14b8a6;
    --scxcr-heading: #172033;
    --scxcr-surface: #f8fafc;
}

.scxcr-form-title {
    color: var(--scxcr-heading);
    margin-bottom: 8px;
}

.scxcr-form-intro {
    color: #64748b;
    margin-bottom: 18px;
}

.scxcr-registration-form {
    display: grid;
    gap: 18px;
}

.scxcr-wizard-progress {
    counter-reset: scxcr-step;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.scxcr-wizard-progress li {
    border-bottom: 3px solid #dbe3ea;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    padding: 0 0 8px;
}

.scxcr-wizard-progress li::before {
    counter-increment: scxcr-step;
    content: counter(scxcr-step) ". ";
}

.scxcr-wizard-progress li.is-active {
    border-color: var(--scxcr-primary);
    color: var(--scxcr-heading);
}

.scxcr-wizard-progress li.is-complete {
    border-color: var(--scxcr-accent);
    color: var(--scxcr-primary);
}

.scxcr-registration-form [hidden],
.scxcr-course-comparison [hidden] {
    display: none !important;
}

.scxcr-section {
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    box-sizing: border-box;
    margin: 0;
    min-width: 0;
    padding: 18px;
}

.scxcr-section legend {
    color: var(--scxcr-heading);
    font-weight: 700;
    padding: 0 8px;
}

.scxcr-step-intro {
    color: #64748b;
    margin: 0 0 14px;
}

.scxcr-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scxcr-field {
    margin: 0 0 14px;
    min-width: 0;
}

.scxcr-field:last-child {
    margin-bottom: 0;
}

.scxcr-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.scxcr-field span {
    color: #b91c1c;
}

.scxcr-field input,
.scxcr-field select,
.scxcr-field textarea {
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
    padding: 11px 12px;
    width: 100%;
}

.scxcr-course-summary {
    background: var(--scxcr-surface);
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    color: #334155;
    line-height: 1.55;
    overflow-wrap: anywhere;
    padding: 12px 14px;
}

.scxcr-review-summary {
    background: var(--scxcr-surface);
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    color: #334155;
    display: grid;
    gap: 4px;
    line-height: 1.55;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
    padding: 12px 14px;
}

.scxcr-review-summary strong {
    color: var(--scxcr-heading);
}

.scxcr-course-summary strong {
    display: block;
    margin-bottom: 4px;
}

.scxcr-course-summary span {
    display: block;
}

.scxcr-matrix-scroll {
    margin-top: 14px;
    max-width: 100%;
    overflow-x: auto;
}

.scxcr-course-comparison-embedded {
    max-width: 100%;
}

.scxcr-compare-select {
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.scxcr-wizard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-top: 16px;
}

.scxcr-wizard-actions button {
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 11px 14px;
}

.scxcr-wizard-back {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
}

.scxcr-wizard-next {
    background: var(--scxcr-primary);
    border: 0;
    color: var(--scxcr-primary-text);
    margin-left: auto;
}

.scxcr-wizard-next:hover,
.scxcr-wizard-next:focus {
    background: var(--scxcr-primary-hover);
}

.scxcr-compare-select {
    background: var(--scxcr-primary);
    border: 0;
    color: var(--scxcr-primary-text);
    margin-top: 12px;
    padding: 10px 13px;
}

.scxcr-compare-select:hover,
.scxcr-compare-select:focus {
    background: var(--scxcr-primary-hover);
}

.scxcr-duration-matrix {
    border-collapse: collapse;
    font-size: 14px;
    min-width: 760px;
    table-layout: fixed;
    width: 100%;
}

.scxcr-duration-matrix th,
.scxcr-duration-matrix td {
    border: 1px solid #dbe3ea;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.scxcr-duration-matrix thead th {
    background: #eef6f6;
    color: var(--scxcr-heading);
    font-weight: 700;
}

.scxcr-duration-matrix th:first-child {
    left: 0;
    position: sticky;
    z-index: 2;
}

.scxcr-duration-matrix thead th:first-child {
    z-index: 3;
}

.scxcr-matrix-row-heading {
    background: var(--scxcr-surface);
    color: var(--scxcr-heading);
    font-weight: 600;
    width: 22%;
}

.scxcr-matrix-cell {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.scxcr-matrix-cell strong {
    color: var(--scxcr-heading);
    font-size: 15px;
}

.scxcr-matrix-cell span,
.scxcr-matrix-cell small {
    color: #334155;
    line-height: 1.4;
}

.scxcr-matrix-cell small {
    display: block;
    font-size: 13px;
}

.scxcr-matrix-empty {
    color: #64748b;
    font-style: italic;
}

.scxcr-consent {
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.scxcr-consent input {
    margin-right: 6px;
}

.scxcr-hidden {
    left: -9999px;
    position: absolute;
}

.scxcr-submit {
    background: var(--scxcr-primary);
    border: 0;
    border-radius: 6px;
    color: var(--scxcr-primary-text);
    cursor: pointer;
    font-weight: 700;
    padding: 13px 18px;
    width: fit-content;
}

.scxcr-submit:hover,
.scxcr-submit:focus {
    background: var(--scxcr-primary-hover);
}

.scxcr-alert {
    border-radius: 6px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.scxcr-alert-success {
    background: #dcfce7;
    color: #166534;
}

.scxcr-alert-error {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 640px) {
    .scxcr-grid {
        grid-template-columns: 1fr;
    }

    .scxcr-section {
        padding: 14px;
    }

    .scxcr-wizard-progress {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .scxcr-wizard-actions {
        display: grid;
    }

    .scxcr-wizard-next {
        margin-left: 0;
    }

    .scxcr-duration-matrix {
        font-size: 13px;
        min-width: 720px;
    }
}
