.nqt-themed-workflow {
    --nqt-red: #cc0000;
    --nqt-charcoal: #1c1c1c;
    --nqt-dark-grey: #323232;
    --nqt-med-grey: #646464;
    --nqt-light-grey: #ededed;
    --nqt-border: #d5d5d5;
    color: var(--nqt-charcoal) !important;
    background: #fff !important;
    font-family: Arial, Helvetica, sans-serif;
}

.nqt-themed-workflow .container {
    width: min(calc(100% - 2rem), 1120px);
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 0;
}

.nqt-themed-workflow .nqt-list-shell,
.nqt-themed-workflow .nqt-reserve-shell {
    width: 100%;
    max-width: none;
}

.nqt-themed-workflow .nqt-list-card,
.nqt-themed-workflow .nqt-reserve-card {
    overflow: hidden;
    padding: 0 !important;
    border: 1px solid var(--nqt-border);
    border-top: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.08);
    color: var(--nqt-charcoal);
}

.nqt-workflow-header {
    position: relative;
    overflow: hidden;
    margin: 0 0 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-bottom: 6px solid var(--nqt-red);
    background: var(--nqt-charcoal);
    color: #fff;
}

.nqt-workflow-header::after {
    position: absolute;
    top: -5rem;
    right: -4rem;
    width: 14rem;
    height: 14rem;
    border: 2.25rem solid rgba(204, 0, 0, 0.35);
    border-radius: 50%;
    content: "";
}

.nqt-workflow-kicker,
.nqt-workflow-title,
.nqt-workflow-intro {
    position: relative;
    z-index: 1;
}

.nqt-workflow-kicker {
    margin: 0 0 0.6rem;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nqt-workflow-title {
    margin: 0;
    color: #fff;
    font-family: var(--fixture, "Fixture", Arial, sans-serif);
    font-size: clamp(0.775rem, 2vw, 1.3rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.nqt-workflow-intro {
    max-width: 48rem;
    margin: 0.9rem 0 0;
    color: #f3f3f3;
    font-size: 1rem;
    line-height: 1.6;
}

.nqt-themed-workflow .nqt-list-card > .nqt-workflow-header {
    background: var(--nqt-light-grey) !important;
    color: #000 !important;
    font-family: var(--fixture, "Fixture", Arial, sans-serif) !important;
}

.nqt-themed-workflow .nqt-list-card > .nqt-workflow-header * {
    background-color: transparent !important;
    color: #000 !important;
    font-family: var(--fixture, "Fixture", Arial, sans-serif) !important;
}

.nqt-themed-workflow .nqt-list-card > .nqt-workflow-header a,
.nqt-themed-workflow .nqt-list-card > .nqt-workflow-header a:hover,
.nqt-themed-workflow .nqt-list-card > .nqt-workflow-header a:focus {
    color: #000 !important;
}

.nqt-themed-workflow .nqt-tournament-card {
    overflow: hidden;
    margin: 0 1.5rem 1.25rem;
    padding: 0 !important;
    border: 1px solid var(--nqt-border);
    border-radius: 0;
    background: #fff;
    color: var(--nqt-charcoal);
}

.nqt-themed-workflow .nqt-tournament-card + .nqt-tournament-card {
    margin-top: 0;
}

.nqt-themed-workflow .nqt-tournament-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.nqt-themed-workflow .nqt-tournament-header {
    display: flex;
    grid-column: 1 / -1;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 4px solid var(--nqt-red);
    background: var(--nqt-light-grey);
}

.nqt-themed-workflow .nqt-school-seal {
    display: block;
    width: 4.75rem;
    max-width: 25%;
    height: 4.75rem;
    margin: 0;
    object-fit: contain;
}

.nqt-themed-workflow .nqt-school-name {
    margin: 0;
    color: var(--nqt-charcoal);
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.nqt-themed-workflow .nqt-tournament-column {
    min-width: 0;
    padding: 1.25rem;
    border-right: 1px solid var(--nqt-border);
    color: var(--nqt-dark-grey);
    line-height: 1.6;
}

.nqt-themed-workflow .nqt-tournament-column:nth-of-type(4) {
    border-right: 0;
}

.nqt-themed-workflow .nqt-tournament-column a {
    color: var(--nqt-red);
    font-weight: 700;
    text-decoration: underline;
}

.nqt-themed-workflow .nqt-tournament-footer {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--nqt-border);
    background: var(--nqt-charcoal);
}

.nqt-themed-workflow .nqt-spaces {
    margin: 0;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nqt-themed-workflow .nqt-list-actions,
.nqt-themed-workflow .nqt-reserve-actions,
.nqt-themed-workflow .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nqt-themed-workflow .nqt-list-actions {
    margin: 0;
    padding: 0 1.5rem 1.5rem;
}

.nqt-themed-workflow .nqt-reserve-actions {
    margin: 0;
}

.nqt-themed-workflow .nqt-list-actions .btn,
.nqt-themed-workflow .nqt-reserve-actions .btn,
.nqt-themed-workflow .form-button {
    display: inline-flex;
    width: auto;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--nqt-red) !important;
    border-radius: 0 !important;
    background: var(--nqt-red) !important;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
}

.nqt-themed-workflow .nqt-list-actions .btn:hover,
.nqt-themed-workflow .nqt-list-actions .btn:focus-visible,
.nqt-themed-workflow .nqt-reserve-actions .btn:hover,
.nqt-themed-workflow .nqt-reserve-actions .btn:focus-visible,
.nqt-themed-workflow .form-button:hover,
.nqt-themed-workflow .form-button:focus-visible {
    background: #fff !important;
    color: var(--nqt-red) !important;
}

.nqt-themed-workflow .nqt-form-intro {
    margin: 0 1.5rem 1.5rem;
    padding: 1.25rem;
    border: 0;
    border-left: 6px solid var(--nqt-red);
    border-radius: 0;
    background: var(--nqt-light-grey);
    color: var(--nqt-charcoal);
}

.nqt-themed-workflow .nqt-form-intro h6 {
    margin: 0 0 0.75rem;
    color: var(--nqt-charcoal);
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
}

.nqt-themed-workflow .nqt-form-intro p {
    color: var(--nqt-dark-grey);
    line-height: 1.65;
}

.nqt-themed-workflow .nqt-form-intro a {
    color: var(--nqt-red);
    font-weight: 700;
}

.nqt-themed-workflow .form-section {
    margin: 0 1.5rem;
    padding: 1.5rem;
    border-top: 4px solid var(--nqt-charcoal);
    background: var(--nqt-light-grey);
}

.nqt-themed-workflow .form-field label,
.nqt-themed-workflow .nqt-checkbox-row label {
    color: var(--nqt-charcoal);
    font-weight: 800;
}

.nqt-themed-workflow .form-input,
.nqt-themed-workflow input[type="text"],
.nqt-themed-workflow input[type="number"],
.nqt-themed-workflow input[type="email"],
.nqt-themed-workflow input[type="tel"],
.nqt-themed-workflow select,
.nqt-themed-workflow textarea {
    min-height: 2.75rem;
    border: 1px solid #8a8a8a !important;
    border-radius: 0 !important;
    background: #fff;
    color: var(--nqt-charcoal);
}

.nqt-themed-workflow textarea {
    min-height: 7rem;
}

.nqt-themed-workflow .form-input:focus,
.nqt-themed-workflow input:focus,
.nqt-themed-workflow select:focus,
.nqt-themed-workflow textarea:focus {
    outline: 3px solid rgba(204, 0, 0, 0.2);
    border-color: var(--nqt-red) !important;
    box-shadow: none;
}

.nqt-themed-workflow .form-actions {
    margin-top: 1.25rem;
}

.nqt-themed-workflow .form-button-secondary {
    border-color: var(--nqt-charcoal) !important;
    background: var(--nqt-charcoal) !important;
}

.nqt-themed-workflow .form-button-secondary:hover,
.nqt-themed-workflow .form-button-secondary:focus-visible {
    background: #fff !important;
    color: var(--nqt-charcoal) !important;
}

@media (max-width: 900px) {
    .nqt-themed-workflow .nqt-tournament-grid {
        grid-template-columns: 1fr;
    }

    .nqt-themed-workflow .nqt-tournament-column,
    .nqt-themed-workflow .nqt-tournament-column:nth-of-type(4) {
        border-right: 0;
        border-bottom: 1px solid var(--nqt-border);
    }
}

@media (max-width: 575.98px) {
    .nqt-themed-workflow .container {
        width: min(calc(100% - 1rem), 1120px);
    }

    .nqt-themed-workflow .nqt-tournament-card,
    .nqt-themed-workflow .nqt-form-intro,
    .nqt-themed-workflow .form-section {
        margin-right: 0.75rem;
        margin-left: 0.75rem;
    }

    .nqt-themed-workflow .nqt-list-actions {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .nqt-themed-workflow .nqt-tournament-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .nqt-themed-workflow .nqt-school-seal {
        max-width: 5rem;
    }

    .nqt-themed-workflow .nqt-tournament-footer,
    .nqt-themed-workflow .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .nqt-themed-workflow .nqt-list-actions .btn,
    .nqt-themed-workflow .nqt-reserve-actions .btn,
    .nqt-themed-workflow .form-button {
        width: 100%;
    }
}
