@font-face {
    font-family: "Support Sans";
    src: url("/fonts/filament/filament/inter/inter-latin-wght-normal-NRMW37G5.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    font-family: "Support Sans", ui-sans-serif, sans-serif;
    color: #202321;
    background: var(--brand-bg);
    accent-color: var(--brand-primary);
    --ink: #202321;
    --muted: #626a66;
    --brand-bg: #f7f8f7;
    --brand-surface: #ffffff;
    --line: color-mix(in srgb, var(--brand-primary) 14%, #d7dcda);
    --soft: color-mix(in srgb, var(--brand-primary) 5%, var(--brand-surface));
    --danger: #b4232f;
    --focus: color-mix(in srgb, var(--brand-primary) 75%, #000);
    --choice-color: var(--brand-primary);
    --inline-flow: 1;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; background: var(--brand-bg); }
[dir="rtl"] body { font-family: Tahoma, "Segoe UI", sans-serif; }
[dir="rtl"] { --inline-flow: -1; }
button, input, select, textarea { font: inherit; }
button, label[for], .type-option, .compact-choice, input[type="radio"], input[type="checkbox"] { cursor: pointer; }
::selection { color: #fff; background: var(--brand-primary); }

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 4rem;
    padding: .7rem clamp(1.25rem, 5vw, 5rem);
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--brand-surface) 94%, transparent);
}

.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); font-weight: 760; text-decoration: none; }
.brand img { max-width: 8rem; max-height: 2.25rem; object-fit: contain; }
.masthead nav a { color: var(--ink); font-size: .9rem; font-weight: 650; text-underline-offset: .25rem; }

main { width: min(72rem, 100%); margin-inline: auto; padding: clamp(.8rem, 2vw, 1.25rem) clamp(1rem, 3vw, 2rem) 1.5rem; }
.support-shell { display: block; }
.support-intro { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) minmax(12rem, 16rem); align-items: center; gap: .15rem .8rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.brand-mark { grid-row: 1 / 3; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: .75rem; background: var(--brand-surface); }
.brand-mark span { width: 1.15rem; height: 1.15rem; border: .3rem solid var(--brand-primary); border-top-color: var(--brand-accent); border-radius: 50%; transform: rotate(-20deg); }
h1 { grid-column: 2; max-width: none; margin: 0; font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.support-intro > p { grid-column: 2; max-width: 42rem; margin: .15rem 0 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.support-intro .support-promise { grid-column: 3; grid-row: 1 / 3; margin: 0; padding-inline-start: 1.15rem; border-inline-start: 1px solid var(--line); color: var(--ink); font-size: .78rem; line-height: 1.5; }

.wizard-wrap { min-width: 0; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: .7rem 0; margin: 0; list-style: none; border-bottom: 1px solid var(--line); }
.stepper li { position: relative; display: grid; grid-template-columns: 1.75rem 1fr; align-items: center; gap: .65rem; color: #5f6763; font-size: .85rem; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; inset-inline: calc(100% - 1.3rem) .55rem; top: 50%; height: 1px; background: var(--line); }
.stepper li > span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--line); border-radius: 50%; background: var(--brand-surface); font-variant-numeric: tabular-nums; font-weight: 760; }
.stepper li[aria-current="step"] { color: var(--ink); }
.stepper li[aria-current="step"] > span { color: #fff; border-color: var(--brand-primary); background: var(--brand-primary); }
.stepper li.is-complete > span { color: var(--brand-primary); border-color: var(--brand-primary); }

.ticket-wizard { padding-top: .85rem; overflow: hidden; }
.wizard-step { transform-origin: center; }
.wizard-step[hidden] { display: none; }
.wizard-step.is-entering-forward { animation: step-enter-forward .24s cubic-bezier(.16, 1, .3, 1) both; }
.wizard-step.is-entering-back { animation: step-enter-back .24s cubic-bezier(.16, 1, .3, 1) both; }
.wizard-step.is-leaving-forward { animation: step-leave-forward .13s ease-in both; pointer-events: none; }
.wizard-step.is-leaving-back { animation: step-leave-back .13s ease-in both; pointer-events: none; }
.step-heading { max-width: 48rem; margin-bottom: .8rem; }
.step-heading h2 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; outline: none; }
.step-heading span { display: block; margin-top: .25rem; color: var(--muted); font-size: .84rem; line-height: 1.4; }

fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend, .field > label, .field-label { display: block; margin-bottom: .4rem; color: var(--ink); font-size: .86rem; font-weight: 740; }
.type-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .45rem; }
.type-grid legend { grid-column: 1 / -1; }
.type-option { position: relative; min-height: 3.15rem; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option span { display: flex; align-items: center; height: 100%; padding: .65rem .75rem; border: 1px solid color-mix(in srgb, var(--choice-color) 34%, var(--line)); border-radius: .65rem; background: color-mix(in srgb, var(--choice-color) 7%, var(--brand-surface)); color: color-mix(in srgb, var(--choice-color) 82%, #111); font-size: .79rem; font-weight: 700; line-height: 1.22; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.type-option:hover span { border-color: var(--choice-color); background: color-mix(in srgb, var(--choice-color) 12%, var(--brand-surface)); }
.type-option input:checked + span { color: #fff; border-color: var(--choice-color); background: var(--choice-color); box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 22%, transparent); }
.type-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.type-option:active span { transform: translateY(1px); }
.type-option-server_incident { --choice-color: #a52a37; }
.type-option-bug { --choice-color: #a15c08; }
.type-option-feature_request { --choice-color: #6750a4; }
.type-option-information_request { --choice-color: #176b87; }
.type-option-account_access { --choice-color: #28765c; }
.type-option-other { --choice-color: #59636f; }
.context-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: .75rem; margin-top: .7rem; }
.choice-group { padding-top: .6rem; border-top: 1px solid var(--line); }
.choice-group legend { margin-bottom: .2rem; }
.choice-group > p { margin: 0 0 .4rem; color: var(--muted); font-size: .72rem; line-height: 1.35; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.choice-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compact-choice { position: relative; min-width: 0; }
.compact-choice input { position: absolute; opacity: 0; pointer-events: none; }
.compact-choice span { display: grid; place-items: center; min-height: 2.75rem; padding: .45rem .55rem; border: 1px solid color-mix(in srgb, var(--choice-color) 34%, var(--line)); border-radius: .6rem; background: color-mix(in srgb, var(--choice-color) 7%, var(--brand-surface)); color: color-mix(in srgb, var(--choice-color) 82%, #111); font-size: .76rem; font-weight: 750; text-align: center; transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.compact-choice:hover span { border-color: var(--choice-color); background: color-mix(in srgb, var(--choice-color) 12%, var(--brand-surface)); }
.compact-choice input:checked + span { color: #fff; border-color: var(--choice-color); background: var(--choice-color); box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 22%, transparent); }
.compact-choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.compact-choice:active span { transform: translateY(1px); }
.severity-low { --choice-color: #28765c; }
.severity-medium { --choice-color: #176b87; }
.severity-high { --choice-color: #a15c08; }
.severity-critical { --choice-color: #a52a37; }
.occurrence-once { --choice-color: #315f9f; }
.occurrence-recurring { --choice-color: #74469a; }

.field { margin-top: .7rem; }
input[type="text"], input[type="email"], input[type="tel"], input:not([type]), select, textarea {
    width: 100%;
    border: 1px solid #b8bfbc;
    border-radius: .75rem;
    background: var(--brand-surface);
    color: var(--ink);
    min-height: 2.75rem;
    padding: .68rem .85rem;
    transition: border-color .18s ease, box-shadow .18s ease;
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #626a66; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: .3rem; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.field-meta span:last-child { flex: none; font-variant-numeric: tabular-nums; }
.field-error, .upload-error { margin: .35rem 0 0; color: var(--danger); font-size: .8rem; }
.upload-error:empty { display: none; }

.upload-zone { display: grid; place-items: center; min-height: 4.75rem; padding: .7rem; border: 1px dashed #aeb6b2; border-radius: .65rem; background: color-mix(in srgb, var(--brand-surface) 78%, var(--brand-bg)); text-align: center; transition: border-color .18s ease, background .18s ease; }
.upload-zone:hover { border-color: var(--brand-primary); background: var(--soft); }
.visually-hidden:focus-visible + .upload-zone { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--brand-primary); }
.upload-zone strong { color: var(--brand-primary); font-size: .94rem; }
.upload-zone span { margin-top: .35rem; color: var(--muted); font-size: .78rem; }
.image-previews { display: grid; gap: .55rem; margin-top: .75rem; }
.image-preview { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-width: 0; padding: .55rem; border-bottom: 1px solid var(--line); }
.image-preview img { width: 3rem; height: 3rem; border-radius: .45rem; object-fit: cover; }
.image-preview span { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.image-preview button { border: 0; background: transparent; color: var(--danger); font-size: .78rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2rem; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.contact-grid .field { margin-top: 0; }
.review-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; margin-top: .8rem; padding: .65rem 0; border-block: 1px solid var(--line); }
.review-strip div { min-width: 0; }
.review-strip span, .review-strip strong { display: block; }
.review-strip span { color: var(--muted); font-size: .72rem; }
.review-strip strong { overflow: hidden; margin-top: .2rem; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.consent { display: flex; align-items: flex-start; gap: .6rem; margin-top: .7rem; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.consent input { flex: none; width: 1rem; height: 1rem; margin-top: .18rem; }

.wizard-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.button { min-width: 8rem; min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .65rem; font-weight: 760; white-space: nowrap; transition: transform .15s ease, background .18s ease, border-color .18s ease; }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--brand-primary); }
.button-primary:hover { background: color-mix(in srgb, var(--brand-primary) 86%, #000); }
.button:disabled { cursor: wait; opacity: .7; }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--brand-surface); }
.button-secondary:hover { border-color: #9da6a1; }

.confirmation, .ticket { width: min(48rem, 100%); margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--brand-surface); box-shadow: 0 1.5rem 4rem color-mix(in srgb, var(--brand-primary) 8%, transparent); }
.confirmation h1, .ticket h1 { max-width: none; font-size: clamp(2.2rem, 5vw, 4rem); }
.confirmation .button { display: inline-flex; align-items: center; justify-content: center; margin-top: 1rem; text-decoration: none; }
.reference { color: var(--brand-primary); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.ticket article { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.ticket time { color: var(--muted); font-size: .8rem; }

.honeypot, .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }

@keyframes step-enter-forward {
    from { opacity: .25; transform: translateX(calc(var(--inline-flow) * 1rem)); filter: blur(2px); clip-path: inset(0 0 0 3%); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); clip-path: inset(0); }
}
@keyframes step-enter-back {
    from { opacity: .25; transform: translateX(calc(var(--inline-flow) * -1rem)); filter: blur(2px); clip-path: inset(0 3% 0 0); }
    to { opacity: 1; transform: translateX(0); filter: blur(0); clip-path: inset(0); }
}
@keyframes step-leave-forward {
    to { opacity: 0; transform: translateX(calc(var(--inline-flow) * -.55rem)); filter: blur(1px); }
}
@keyframes step-leave-back {
    to { opacity: 0; transform: translateX(calc(var(--inline-flow) * .55rem)); filter: blur(1px); }
}

@media (max-width: 62rem) {
    .support-intro { grid-template-columns: 3.25rem minmax(0, 1fr); }
    .support-intro .support-promise { display: none; }
    .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .context-grid { grid-template-columns: 1fr; gap: .75rem; }
    .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-grid .field:last-child { grid-column: 1 / -1; }
}

@media (max-width: 42rem) {
    .masthead { min-height: 3.75rem; padding: .6rem 1rem; }
    main { padding: .75rem 1rem 1.25rem; }
    .support-intro { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .2rem .8rem; padding-bottom: 1rem; }
    .brand-mark { width: 2.75rem; height: 2.75rem; }
    h1 { font-size: 1.55rem; }
    .support-intro > p { font-size: .84rem; }
    .stepper { padding-block: .65rem; }
    .stepper li { grid-template-columns: 1.65rem; justify-items: start; }
    .stepper li strong { margin-top: .35rem; font-size: .72rem; }
    .stepper li:not(:last-child)::after { inset-inline: 2.1rem .45rem; top: .82rem; }
    .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .choice-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-grid .field:last-child { grid-column: auto; }
    .review-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .review-item-subject { grid-column: 1 / -1; }
    .wizard-actions { justify-content: stretch; }
    .button { flex: 1; min-width: 0; }
}

@media (max-width: 22rem) {
    .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .choice-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
