:root {
    --tc-navy: #173047;
    --tc-navy-2: #23425a;
    --tc-text: #182c3d;
    --tc-muted: #72808d;
    --tc-line: #dfe6eb;
    --tc-soft: #f5f7f8;
    --tc-soft-2: #fafbfb;
    --tc-gold: #3e5e7a;
    --tc-gold-dark: #3e5e7a;
    --tc-gold-soft: #ffffff;
    --tc-green: #789f83;
    --tc-shadow: 0 18px 55px rgba(30, 51, 67, .09);
}

* { box-sizing: border-box; }

body.tc-page {
    margin: 0;
    background: #f7f8f9;
    color: var(--tc-text);
    font-family: inherit;
}

.tc-page a { color: var(--tc-gold-dark); }
.tc-page a:hover { color: var(--tc-navy); }

.tc-shell {
    width: min(1460px, calc(100% - 48px));
    margin: 0 auto;
}

.tc-intro {
    position: relative;
    overflow: hidden;
    padding: 42px 48px;
    margin-bottom: 28px;
    border: 1px solid #e6eaed;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 18%, rgba(62,94,122,.10), transparent 25%),
        linear-gradient(135deg, #fff 0%, #fbfcfd 58%, #ffffff 100%);
    box-shadow: 0 12px 35px rgba(34, 51, 64, .05);
}

.tc-intro::after {
    content: "";
    position: absolute;
    right: 52px;
    top: 50%;
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--tc-gold));
}

.tc-intro__eyebrow {
    margin-bottom: 12px;
    color: var(--tc-gold-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tc-intro h1 {
    margin: 0 0 10px;
    color: var(--tc-navy);
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.tc-intro p {
    max-width: 690px;
    margin: 0;
    color: #5f6e7a;
    font-size: 17px;
    line-height: 1.55;
}

.tc-layout {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(620px, 820px) minmax(180px, 230px);
    gap: 24px;
    align-items: start;
    justify-content: center;
}

.tc-side {
    display: grid;
    gap: 18px;
}

.tc-mini-card,
.tc-action-card {
    background: #fff;
    border: 1px solid #e5eaed;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(34, 51, 64, .05);
}

.tc-mini-card { padding: 24px 22px; }
.tc-action-card { padding: 26px 22px; }

.tc-mini-card__icon,
.tc-action-card__icon,
.ticket-form-header__icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--tc-gold-soft);
    color: var(--tc-gold-dark);
    font-size: 18px;
}

.tc-mini-card h2,
.tc-action-card h2 {
    margin: 0 0 8px;
    color: var(--tc-navy);
    font-size: 16px;
    line-height: 1.3;
}

.tc-mini-card p,
.tc-action-card p {
    margin: 0;
    color: var(--tc-muted);
    font-size: 13px;
    line-height: 1.55;
}

.tc-action-card a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 11px 13px;
    color: var(--tc-navy);
    border: 1px solid #e2e7ea;
    border-radius: 10px;
    background: var(--tc-soft-2);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: .2s ease;
}

.tc-action-card a:hover {
    border-color: #b9c8d4;
    background: var(--tc-gold-soft);
    transform: translateY(-1px);
}

.ticket-form-container {
    width: 100%;
    max-width: 820px;
    margin: 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #e3e8eb;
    border-radius: 22px;
    box-shadow: var(--tc-shadow);
}

.ticket-form-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 32px;
    text-align: left;
}

.ticket-form-header__icon {
    width: 50px;
    height: 50px;
    margin: 0;
    flex: 0 0 auto;
}

.ticket-form-header h2 {
    margin: 0 0 4px;
    color: var(--tc-navy);
    font-size: 26px;
    letter-spacing: -.025em;
}

.ticket-form-header p {
    margin: 0;
    color: var(--tc-muted);
    font-size: 13px;
}

.tc-form { display: grid; gap: 26px; }
.tc-step { min-width: 0; }

.tc-step__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.tc-step__number {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: var(--tc-gold);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(62,94,122,.16);
}

.tc-step__head h3 {
    margin: 1px 0 3px;
    color: var(--tc-navy);
    font-size: 15px;
    line-height: 1.25;
}

.tc-step__head p {
    margin: 0;
    color: var(--tc-muted);
    font-size: 12px;
    line-height: 1.45;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.category-card {
    position: relative;
    min-height: 150px;
    padding: 18px 17px 16px;
    border: 1px solid var(--tc-line);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.category-card:hover {
    border-color: #b9c8d4;
    box-shadow: 0 10px 24px rgba(40, 58, 70, .08);
    transform: translateY(-2px);
}

.category-card.selected {
    border: 2px solid #3e5e7a;
    padding: 17px 16px 15px;
    background: #f4f7fa;
    box-shadow: 0 10px 26px rgba(62,94,122,.12);
}

.category-card.selected::after {
    content: "\2713";
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3e5e7a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(62,94,122,.22);
}

.category-card__icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 11px;
    border-radius: 9px;
    background: #f1f4f6;
    color: var(--tc-navy);
    font-size: 17px;
}

.category-card.selected .category-card__icon {
    background: #3e5e7a;
    color: #fff;
}

.category-card.selected h4 {
    color: #3e5e7a;
}

.category-card h4 {
    margin: 0 24px 6px 0;
    color: var(--tc-navy);
    font-size: 13px;
    line-height: 1.25;
}

.category-card p {
    margin: 0 18px 0 0;
    color: var(--tc-muted);
    font-size: 11px;
    line-height: 1.4;
}

.category-card__arrow {
    position: absolute;
    right: 13px;
    bottom: 14px;
    color: #a8b1b8;
    font-size: 10px;
}

.priority-selector {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
}

.priority-option {
    min-width: 0;
    min-height: 92px;
    padding: 13px 10px;
    border: 1px solid var(--tc-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: .2s ease;
}

.priority-option:hover {
    border-color: #b9c8d4;
    background: #fff;
}

.priority-option.selected {
    border: 2px solid #3e5e7a;
    padding: 12px 9px;
    background: #f4f7fa;
    box-shadow: 0 7px 18px rgba(62,94,122,.10);
}

.priority-option > i {
    display: block;
    margin-bottom: 7px;
    color: #647785;
    font-size: 15px;
}

.priority-option strong {
    display: block;
    margin-bottom: 4px;
    color: var(--tc-navy);
    font-size: 12px;
}

.priority-option span {
    display: block;
    color: #89959e;
    font-size: 10px;
    line-height: 1.3;
}

.priority-option.low > i { color: var(--tc-green); }
.priority-option.medium > i,
.priority-option.medium.selected strong { color: var(--tc-gold-dark); }
.priority-option.high > i,
.priority-option.urgent > i { color: #536b7c; }

.form-group { margin: 0; }
.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--tc-navy);
    font-size: 12px;
    font-weight: 700;
}
.form-group label span { color: var(--tc-gold-dark); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dce3e8;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--tc-text);
    font: inherit;
    font-size: 13px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #a2adb5; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3e5e7a;
    box-shadow: 0 0 0 3px rgba(62,94,122,.10);
    background: #fff;
}

.form-group textarea {
    min-height: 145px;
    resize: vertical;
    line-height: 1.5;
}

.tc-contact-panel {
    padding: 18px;
    border: 1px solid #e8ecef;
    border-radius: 14px;
    background: #f8f9fa;
}

.guest-fields {
    display: grid;
    grid-template-columns: 1.05fr 1.05fr .9fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    background: transparent;
}

.hint {
    margin-top: 5px;
    color: #929da6;
    font-size: 10px;
}

.legal-consent-wrap { margin: -2px 0 0; }
.legal-consent {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    color: #687782 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.5;
    cursor: pointer;
}

.legal-consent input {
    width: 17px !important;
    height: 17px;
    flex: 0 0 17px;
    margin: 1px 0 0;
    accent-color: var(--tc-gold-dark);
}

.legal-consent__text { flex: 1 1 auto; }
.legal-consent a { font-weight: 600; }

.btn.tc-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 14px 20px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--tc-navy), #223f55);
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(23,48,71,.16);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn.tc-submit:hover {
    background: linear-gradient(135deg, #203d53, #2a4c64);
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(23,48,71,.2);
}

.btn.tc-submit .fa-arrow-right { font-size: 11px; opacity: .7; }

.tc-auth-note {
    margin: -8px 0 0;
    color: #8a969e;
    font-size: 11px;
    text-align: center;
}

.alert {
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
    padding: 13px 15px;
    border-radius: 11px;
}

.alert ul { margin: 0; padding-left: 18px; }
.alert-error {
    border: 1px solid #cbd6de;
    background: #fff;
    color: #3e5e7a;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1180px) {
    .tc-layout {
        grid-template-columns: minmax(0, 820px) minmax(190px, 230px);
    }
    .tc-side--left { display: none; }
}

@media (max-width: 900px) {
    .tc-shell {
        width: min(100% - 28px, 820px);
        padding-top: 24px;
    }
    .tc-intro { padding: 30px; }
    .tc-intro::after { display: none; }
    .tc-layout { grid-template-columns: 1fr; }
    .tc-side--right {
        grid-template-columns: repeat(2, minmax(0,1fr));
        grid-row: 2;
    }
    .ticket-form-container { grid-row: 1; max-width: none; }
}

@media (max-width: 680px) {
    .tc-shell {
        width: 100%;
        padding: 0 0 34px;
    }
    .tc-intro {
        margin: 0 0 12px;
        padding: 27px 18px 25px;
        border: 0;
        border-bottom: 1px solid #e6eaed;
        border-radius: 0;
        box-shadow: none;
    }
    .tc-intro h1 { font-size: 34px; }
    .tc-intro p { font-size: 14px; }
    .tc-layout { gap: 12px; }
    .ticket-form-container {
        padding: 20px 14px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .ticket-form-header {
        justify-content: flex-start;
        margin-bottom: 26px;
    }
    .ticket-form-header__icon {
        width: 42px;
        height: 42px;
    }
    .ticket-form-header h2 { font-size: 22px; }
    .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-card { min-height: 145px; padding: 15px 13px; }
    .priority-selector { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .guest-fields { grid-template-columns: 1fr; }
    .tc-contact-panel { padding: 15px 12px; }
    .tc-side--right {
        grid-template-columns: 1fr;
        padding: 0 14px;
    }
    .tc-mini-card, .tc-action-card { box-shadow: none; }
}

@media (max-width: 390px) {
    .categories-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 124px; }
    .priority-selector { gap: 7px; }
    .priority-option { min-height: 88px; }
}
