.create-match {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem;
    box-sizing: border-box;
    min-width: 0;
}

.create-match__hero,
.create-match__card {
    max-width: 100%;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

.create-match__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.create-match__eyebrow {
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.create-match__hero h1 {
    margin: 0.25rem 0 0;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.create-match__hero p {
    margin: 0.5rem 0 0;
    color: #475569;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.create-match__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    min-width: 0;
}

.create-match__summary div {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #eff6ff;
}

.create-match__summary span {
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 900;
}

.create-match__summary strong {
    color: #0f172a;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.create-match__card {
    padding: 1rem;
}

.create-match__fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.create-match__form h4 > label {
    margin: 0;
    font-weight: inherit;
    font-size: inherit;
}

.create-match__stage-details {
    margin-top: .75rem;
    padding: .75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.create-match__stage-details > summary {
    cursor: pointer;
    color: #334155;
    font-size: .9rem;
    font-weight: 800;
}

.create-match__ai-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    background: #f8fbff;
}

.create-match__ai-copy {
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.create-match__ai-copy strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.create-match__ai-copy p {
    margin: 0;
    color: #475569;
    font-weight: 700;
}

.create-match__ai-inputs {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
}

.create-match__ai-textarea {
    width: 100%;
    resize: vertical;
}

.create-match__ai-actions,
.create-match__ai-warnings {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.create-match__ai-message {
    padding: 0.7rem 0.85rem;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 800;
}

.create-match__ai-message--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.create-match__ai-message--warning,
.create-match__ai-warnings {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.create-match__ai-warnings {
    padding: 0.7rem 0.85rem;
    border: 1px solid #fde68a;
    border-radius: 14px;
    font-weight: 800;
}

.create-match__ai-warnings span {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
}

.create-match__form > .row {
    align-items: flex-start;
    row-gap: 0.5rem;
    max-width: 100%;
    margin-top: 0 !important;
    margin-right: 0;
    margin-left: 0;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.create-match__group-title {
    margin: 2rem 0 0;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #dbeafe;
    color: #1d4ed8;
    font-size: 1.1rem;
    font-weight: 900;
}

.create-match__group-title:first-child {
    margin-top: 0.25rem;
}

@media (min-width: 1200px) {
    .create-match__form > .row > .col-xl-5 {
        flex: 1 1 0;
        max-width: 46rem;
    }

    .create-match__form > .row > .col-xl-3 h4 {
        padding-top: 0.55rem;
    }
}

.create-match__form small {
    display: block;
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.55;
}

.create-match__check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.5rem;
}

.create-match .create-match__check label {
    margin: 0;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
}

.create-match__inline-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.create-match__stage-row {
    display: grid;
    grid-template-columns: 7rem minmax(0, 16rem);
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.create-match__stage-row > span {
    color: #334155;
    font-weight: 800;
}

.create-match .create-match__stage-mode,
.create-match .create-match__stage-count {
    width: 100%;
}

.create-match__form [class*="col-"],
.create-match__form .col {
    min-width: 0;
}

.create-match__form > .row:last-child {
    border-bottom: 0;
}

.create-match__form h4 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
}

.create-match__logo-row,
.create-match__inline-row,
.create-match__location-row {
    margin-left: 0;
}

.create-match__logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding-left: 15px;
}

.create-match__inline-row--stacked,
.create-match__location-row--stacked,
.create-match__auth-message {
    margin-top: 0.75rem;
}

.create-match__location-row {
    gap: 12px;
}

.create-match__map-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.8rem;
    padding-left: 15px;
}

.create-match__map-preview span {
    color: #475569;
    font-size: 0.86rem;
    font-weight: 800;
}

.create-match__map-preview a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0 0.75rem;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.84rem;
    font-weight: 900;
    text-decoration: none;
}

/* Shared by the VGC and PTCG creation pages, including their Radzen controls. */
.create-match .create-match__field--sm {
    min-width: 160px;
}

.create-match .create-match__field--full {
    width: 100%;
}

.create-match .create-match__live-room-input {
    max-width: 100%;
}

.create-match .create-match__field--md {
    min-width: 220px;
}

.create-match .create-match__field--lg {
    min-width: 260px;
}

.create-match .create-match__logo-picker {
    width: 7.5rem;
}

.create-match .create-match__logo-option-image {
    width: 45px;
}

.create-match__logo-preview-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid #dbeafe;
    border-radius: 20px;
    background: #f8fbff;
    overflow: hidden;
}

.create-match__logo-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.create-match__image-note {
    display: block;
    margin-top: 0.55rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.create-match__textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    resize: none;
}

.create-match .create-match__textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.create-match__submit-actions,
.create-match__auth-message {
    text-align: center;
}

.create-match__submit-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.create-match .create-match__submit-button {
    min-width: 12rem;
}

.create-match__auth-message {
    color: #475569;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .create-match__hero,
    .create-match__summary,
    .create-match__ai-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .create-match__stage-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .create-match .create-match__submit-button {
        width: 100%;
    }
}
