:root {
    --color-bg: color-mix(in srgb, var(--color-primary-soft) 58%, #ffffff);
    --color-surface: #ffffff;
    --color-surface-elevated: #fbfcfd;
    --color-text: #1f2933;
    --color-muted: #637083;
    --color-border: #dfe5ec;
    --color-border-strong: #c5ced8;
    --color-primary: #AD1215;
    --color-primary-dark: #850d10;
    --color-primary-soft: #fff1f1;
    --color-accent: #0f8b8d;
    --color-warning-bg: #fff7df;
    --color-warning-text: #6f4e00;
    --shadow-card: 0 14px 34px rgba(20, 35, 52, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    --shadow-soft: 0 8px 20px rgba(20, 35, 52, 0.06);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--color-bg);
}

body {
    margin: 0;
    min-height: 100%;
    color: var(--color-text);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, color-mix(in srgb, var(--color-primary-soft) 42%, #ffffff) 42%, var(--color-bg) 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

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

.question-block {
    margin: 24px 0 0;
    padding: 24px;
    border: 2px solid color-mix(in srgb, var(--color-primary) 16%, transparent);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(108, 31, 31, 0.04);
}

fieldset.question-block {
    border: 0;
    min-width: 0;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-primary) 16%, transparent), 0 14px 36px rgba(20, 35, 52, 0.04);
}
.question-block__head {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    float: none;
    width: 100%;
    margin-bottom: 20px;
    padding: 0;
    color: inherit;
}

.question-block__head:not(:has(.question-index)) {
    grid-template-columns: 1fr;
}

.question-index {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-primary-light, var(--color-primary-soft)) 70%, #ffffff);
    color: color-mix(in srgb, var(--color-primary-dark) 72%, var(--color-muted));
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.question-block h2 {
    margin: 0;
    color: #171719;
    font-size: 1.44rem;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: 0;
}

.question-block__head p {
    margin: 7px 0 0;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.question-block .form-field label {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 850;
}

.choice-list {
    display: grid;
    gap: 10px;
}

.choice-row {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 13px;
    align-items: center;
    width: 100%;
    min-height: 78px;
    padding: 14px 18px;
    border: 1px solid #e6e0db;
    border-radius: 20px;
    background: #ffffff;
    color: #171719;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.choice-row:active {
    transform: scale(0.985);
}

.choice-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-row__check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1.5px solid #d7d0ca;
    border-radius: 50%;
    background: #ffffff;
    color: transparent;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.choice-row__check svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.choice-row__label {
    min-width: 0;
    font-size: 1rem;
    font-weight: 720;
}

.choice-row:has(input:checked) {
    border-color: color-mix(in srgb, var(--color-primary) 36%, transparent);
    background: color-mix(in srgb, var(--color-primary-light, var(--color-primary-soft)) 74%, #ffffff);
    box-shadow: 0 12px 28px rgba(20, 35, 52, 0.07);
}

.choice-row:has(input:checked) .choice-row__check {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.choice-row:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
    outline-offset: 3px;
}

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

.feeling-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 150px;
    padding: 20px 10px 18px;
    border: 1px solid #e6e0db;
    border-radius: 20px;
    background: #ffffff;
    color: #171719;
    font-size: 1rem;
    font-weight: 720;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.feeling-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.feeling-choice:active {
    transform: scale(0.985);
}

.feeling-choice__emoji {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 2.25rem;
    line-height: 1;
    filter: saturate(0.94);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.feeling-choice:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--color-primary) 18%, transparent);
    transform: translateY(-3px);
}

.feeling-choice:has(input:checked) .feeling-choice__emoji {
    transform: scale(1.12) rotate(-2deg);
    filter: saturate(1.08);
}

.feeling-choice:has(input:focus-visible) {
    outline: 3px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
    outline-offset: 3px;
}

.app-shell {
    min-height: 100vh;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(197, 206, 216, 0.78);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(20, 35, 52, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.app-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background:
        radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--color-primary-soft) 76%, transparent) 0%, transparent 28%),
        radial-gradient(circle at 72% 50%, color-mix(in srgb, var(--color-primary) 82%, transparent) 0%, transparent 34%),
        linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary-dark) 32%, var(--color-primary) 50%, var(--color-primary-dark) 68%, var(--color-primary-dark) 100%);
    background-size: 150% 100%, 170% 100%, 100% 100%;
    content: "";
    filter: saturate(1.15);
    opacity: 0.95;
    animation: footerAmbientGlow 7s ease-in-out infinite alternate;
}

.app-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: min(100%, 1040px);
    margin: 0 auto;
    min-height: 76px;
    padding: 14px 16px;
}

.app-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    width: min(210px, 42vw);
    max-height: 46px;
    filter: drop-shadow(0 6px 10px rgba(20, 35, 52, 0.08));
    transform: translate(-50%, -50%);
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-nav--right {
    margin-left: auto;
}

.button-link--logout {
    cursor: pointer;
    font-family: inherit;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--color-primary);
    border-radius: var(--radius);
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(173, 18, 21, 0.18);
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.button-link:focus,
.button-link:hover {
    border-color: var(--color-primary-dark);
    background: var(--color-primary-dark);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(133, 13, 16, 0.22);
    transform: translateY(-1px);
}

.button-link--subtle {
    min-height: 34px;
    padding: 6px 11px;
    border-color: rgba(173, 18, 21, 0.22);
    background: rgba(255, 255, 255, 0.78);
    color: var(--color-primary);
    font-size: 0.86rem;
    font-weight: 750;
    box-shadow: 0 8px 18px rgba(20, 35, 52, 0.06);
}

.button-link--subtle:focus,
.button-link--subtle:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    box-shadow: 0 10px 22px rgba(173, 18, 21, 0.12);
}

.app-light-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    height: 10px;
    overflow: hidden;
    background: var(--color-primary-dark);
}

.login-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px 16px;
}

.login-panel {
    display: grid;
    gap: 16px;
    width: min(100%, 430px);
    padding: 30px;
    border: 1px solid rgba(197, 206, 216, 0.84);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(173, 18, 21, 0.14) 0%, transparent 34%),
        linear-gradient(180deg, #ffffff 0%, var(--color-surface-elevated) 100%);
    box-shadow: var(--shadow-card);
}

.login-logo {
    justify-self: center;
    width: min(220px, 72%);
    height: auto;
}

.login-panel h1 {
    margin: 6px 0 0;
    font-size: 1.8rem;
    font-weight: 900;
    text-align: center;
}

.login-panel p {
    margin: 0;
    color: var(--color-muted);
    text-align: center;
}

.login-panel label {
    display: grid;
    gap: 6px;
    color: var(--color-text);
    font-weight: 850;
}

.login-panel input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--color-text);
    font: inherit;
}

.login-panel input:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(173, 18, 21, 0.12);
}

.app-light-footer::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--color-primary-soft) 76%, transparent) 0%, transparent 28%),
        radial-gradient(circle at 72% 50%, color-mix(in srgb, var(--color-primary) 82%, transparent) 0%, transparent 34%),
        linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary-dark) 32%, var(--color-primary) 50%, var(--color-primary-dark) 68%, var(--color-primary-dark) 100%);
    background-size: 150% 100%, 170% 100%, 100% 100%;
    content: "";
    filter: saturate(1.15);
    opacity: 0.95;
    animation: footerAmbientGlow 7s ease-in-out infinite alternate;
}

@keyframes footerAmbientGlow {
    from {
        background-position: 0% 0, 100% 0, 0 0;
    }

    to {
        background-position: 100% 0, 0% 0, 0 0;
    }
}

.sync-status-indicator {
    position: fixed;
    left: max(12px, env(safe-area-inset-left));
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 40;
    max-width: min(320px, calc(100vw - 24px));
    padding: 8px 11px;
    border: 1px solid rgba(176, 113, 0, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 176, 59, 0.86);
    color: #4b3000;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(111, 78, 0, 0.14);
    opacity: 0.84;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sync-status-indicator[hidden] {
    display: none;
}

.app-main {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding: 48px 32px 124px;
}

.page-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 4px 2px;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 16%, transparent);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.page-intro h2 {
    margin: 0;
    font-size: clamp(1.16rem, 2vw, 1.42rem);
    font-weight: 850;
}

.page-intro p {
    margin: 4px 0 0;
    color: var(--color-muted);
}

.events-filter {
    display: grid;
    gap: 6px;
    min-width: min(100%, 260px);
}

.events-filter[hidden] {
    display: none;
}

.events-filter label {
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.events-filter select {
    width: 100%;
    min-height: 42px;
    padding: 8px 38px 8px 12px;
    border: 1px solid rgba(173, 18, 21, 0.28);
    border-radius: var(--radius);
    background:
        linear-gradient(45deg, transparent 50%, var(--color-primary) 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
        linear-gradient(135deg, var(--color-primary) 50%, transparent 50%) calc(100% - 13px) 50% / 7px 7px no-repeat,
        rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font: inherit;
    font-weight: 760;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: var(--shadow-soft);
}

.events-filter select:focus {
    border-color: var(--color-primary);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(173, 18, 21, 0.12), var(--shadow-soft);
}

.message {
    margin: 0;
    padding: 13px 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-muted);
    box-shadow: var(--shadow-soft);
}

.message--warning {
    border-color: #efd58f;
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}

.events-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-card {
    display: block;
    position: relative;
    padding: 18px;
    border: 1px solid rgba(197, 206, 216, 0.82);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, var(--color-surface-elevated) 100%);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.event-card::before {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--color-primary);
    content: "";
}

.event-card:focus,
.event-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 18px 38px rgba(20, 35, 52, 0.12);
    transform: translateY(-2px);
}

.event-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.event-card__title {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 850;
}

.event-card__time {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 850;
    white-space: nowrap;
}

.event-card__meta {
    display: grid;
    gap: 4px;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.event-card__meta div {
    overflow-wrap: anywhere;
}

.events-page .app-main {
    width: min(100%, 900px);
    padding-top: 34px;
}

.events-page .page-intro {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
    gap: 24px;
    align-items: end;
    min-height: 320px;
    margin: -10px 0 28px;
    padding: 48px;
    border-radius: 0;
    background:
        radial-gradient(circle at 84% 10%, color-mix(in srgb, var(--color-primary) 22%, transparent), transparent 34%),
        linear-gradient(135deg, color-mix(in srgb, var(--color-primary-soft) 82%, #ffffff) 0%, #fffdfb 100%);
    overflow: hidden;
}

.events-page .page-intro::after {
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 270px;
    height: 270px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.events-page .page-intro h2 {
    max-width: 620px;
    font-size: clamp(2.35rem, 6vw, 3.9rem);
    font-weight: 760;
    line-height: 0.98;
    letter-spacing: 0;
}

.events-page .page-intro p {
    max-width: 500px;
    margin-top: 18px;
    color: color-mix(in srgb, var(--color-text) 72%, var(--color-muted));
    font-size: 1.02rem;
    line-height: 1.6;
}

.events-page .events-filter {
    position: relative;
    z-index: 1;
    align-self: end;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 14%, transparent);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 36px rgba(20, 35, 52, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.events-page .events-filter select {
    min-height: 54px;
    border-color: color-mix(in srgb, var(--color-primary) 22%, transparent);
    border-radius: 17px;
    background-color: rgba(255, 255, 255, 0.94);
    box-shadow: none;
}

.events-page .events-list {
    gap: 18px;
}

.events-page .event-card {
    padding: 24px;
    border: 2px solid color-mix(in srgb, var(--color-primary) 16%, transparent);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(20, 35, 52, 0.04);
}

.events-page .event-card::before {
    display: none;
}

.events-page .event-card:hover,
.events-page .event-card:focus {
    border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
    box-shadow: 0 18px 42px rgba(20, 35, 52, 0.08);
    transform: translateY(-2px);
}

.events-page .event-card__header {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.events-page .event-card__time {
    display: grid;
    place-items: center;
    align-self: stretch;
    min-height: 82px;
    padding: 12px;
    border-radius: 20px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 12px 28px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.events-page .event-card__time small {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    font-weight: 780;
}

.events-page .event-card__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.events-page .event-card__title {
    color: var(--color-text);
    font-size: clamp(1.2rem, 3vw, 1.55rem);
    font-weight: 880;
    line-height: 1.12;
}

.events-page .event-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.events-page .event-card__meta div {
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 10%, transparent);
    border-radius: 16px;
    background: color-mix(in srgb, var(--color-primary-soft) 34%, #ffffff);
    color: var(--color-text);
    font-size: 0.94rem;
    font-weight: 720;
}

.events-page .event-card__meta span {
    display: block;
    margin-bottom: 3px;
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-message:empty {
    display: none;
}

.report-wizard-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 34px;
    border: 1px solid rgba(173, 18, 21, 0.12);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 86% 12%, color-mix(in srgb, var(--color-primary-soft) 82%, transparent) 0%, transparent 36%),
        linear-gradient(135deg, #ffffff 0%, var(--color-bg) 54%, var(--color-primary-soft) 100%);
    box-shadow: var(--shadow-card);
}

.report-wizard-hero::after {
    position: absolute;
    right: -72px;
    bottom: -112px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(173, 18, 21, 0.14);
    border-radius: 999px;
    content: "";
}

.report-wizard-hero__topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.report-step-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 24px rgba(20, 35, 52, 0.06);
}

.report-step-name {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-wizard-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin-top: 34px;
}

.report-wizard-hero h2 {
    margin: 0;
    font-size: 3.4rem;
    line-height: 0.98;
    letter-spacing: 0;
    font-weight: 950;
}

.report-wizard-hero p {
    max-width: 560px;
    margin: 16px 0 0;
    color: var(--color-muted);
    font-size: 1.04rem;
    line-height: 1.6;
}

.report-progress {
    position: relative;
    z-index: 1;
    height: 5px;
    margin-top: 32px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.report-progress span {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    transition: width 0.28s ease;
}

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

.report-step {
    display: grid;
    gap: 18px;
    animation: reportStepIn 0.34s ease both;
}

.report-step[hidden] {
    display: none;
}

@keyframes reportStepIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.form-field {
    display: grid;
    gap: 6px;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-field label {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
    font: inherit;
    resize: vertical;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-primary);
    background: #ffffff;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(173, 18, 21, 0.12);
}

.recap-section .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 0;
}

.recap-section .form-field {
    grid-template-columns: minmax(120px, 0.78fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(197, 206, 216, 0.42);
    background: transparent;
}

.recap-section .form-field--wide {
    grid-column: 1 / -1;
    grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr);
}

.recap-section .form-field label {
    overflow: hidden;
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.recap-section .form-field input {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    font-size: 0.92rem;
    font-weight: 760;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

.recap-section .form-field input:focus {
    outline: 0;
}

.recap-section input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    display: none;
}

[data-conditional-field][hidden] {
    display: none !important;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.report-step-actions {
    position: fixed;
    right: 50%;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: min(100%, 820px);
    padding: 18px 28px max(18px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(231, 225, 220, 0.9);
    background: rgba(255, 253, 251, 0.88);
    box-shadow: none;
    transform: translateX(50%);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.report-step-actions.is-first-step {
    justify-content: flex-end;
}

.report-step-button {
    min-height: 62px;
    border-radius: 20px;
    cursor: pointer;
    font: inherit;
    font-size: 1.02rem;
    font-weight: 800;
}

.report-step-button--previous {
    min-width: min(30vw, 260px);
}

.report-step-button--next,
.report-step-button--submit {
    min-width: min(40vw, 320px);
}

.report-step-button--previous {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.report-step-button--previous svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.report-step-button--next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 22px 0 26px;
    border: 0;
    box-shadow: 0 12px 28px rgba(173, 18, 21, 0.2);
}

.report-step-button--next svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 0.18s ease;
}

.report-step-button--next:hover svg,
.report-step-button--next:focus svg {
    transform: translateX(4px);
}

.report-step-button--next:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    box-shadow: none;
}

.report-step-button--next:disabled svg {
    transform: none;
}

.report-step-button[hidden] {
    display: none;
}

.report-property-bar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: auto minmax(0, 1.45fr) minmax(150px, 0.85fr) 92px;
    gap: 18px;
    align-items: center;
    width: min(100%, 1040px);
    min-height: 104px;
    margin: 0 auto;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(173, 18, 21, 0.18);
    background: rgba(255, 253, 251, 0.94);
    box-shadow: 0 14px 34px rgba(36, 22, 17, 0.07);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.report-property-bar__back,
.report-property-bar__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid rgba(173, 18, 21, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    color: var(--color-primary);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.report-property-bar__property {
    display: flex;
    align-items: center;
    min-width: 0;
}

.report-property-bar__property div,
.report-property-bar__agent div {
    min-width: 0;
}

.report-property-bar__property strong,
.report-property-bar__property span,
.report-property-bar__agent small,
.report-property-bar__agent strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-property-bar__property strong {
    color: var(--color-primary-dark);
    font-size: 1rem;
    font-weight: 950;
}

.report-property-bar__property span {
    margin-top: 3px;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 720;
}

.report-property-bar__agent {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-left: 18px;
    border-left: 1px solid rgba(197, 206, 216, 0.68);
}

.report-property-bar__agent-photo {
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 999px;
    background: var(--color-primary-soft);
}

.report-property-bar__agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-property-bar__agent small {
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 780;
}

.report-property-bar__agent strong {
    color: var(--color-text);
    font-size: 0.94rem;
    font-weight: 900;
}

.report-property-bar__logo {
    display: block;
    width: 76px;
    justify-self: end;
}

.report-wizard-hero {
    min-height: 360px;
    display: grid;
    align-content: start;
    margin: -48px -32px 28px;
    padding: 54px 46px 42px;
    border: 0;
    border-radius: 0;
    background: #171717;
    color: #ffffff;
    box-shadow: none;
    isolation: isolate;
}

.report-wizard-hero__copy {
    margin-top: 96px;
}

.report-wizard-hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.06) 32%, rgba(0, 0, 0, 0.24) 54%, rgba(0, 0, 0, 0.56) 76%, rgba(0, 0, 0, 0.76) 100%),
        var(--report-hero-image, url("../../instance-assets/banners/banner-step-1.jpg")) center / cover no-repeat;
    content: "";
}

.report-wizard-hero--step-1 {
    --report-hero-image: url("../../instance-assets/banners/banner-step-1.jpg");
}

.report-wizard-hero--step-2 {
    --report-hero-image: url("../../instance-assets/banners/banner-step-2.jpg");
}

.report-wizard-hero--step-3 {
    --report-hero-image: url("../../instance-assets/banners/banner-step-3.jpg");
}

.report-wizard-hero--step-4 {
    --report-hero-image: url("../../instance-assets/banners/banner-step-4.jpg");
}

.report-wizard-hero::after {
    display: none;
}

.report-wizard-hero h2 {
    max-width: 640px;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.08;
    font-weight: 860;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.16);
}

.report-wizard-hero p {
    max-width: 520px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.report-step-kicker {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 15, 15, 0.34);
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.report-step-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(15, 15, 15, 0.34);
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    white-space: nowrap;
}

.report-progress {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 56px;
    background: rgba(255, 255, 255, 0.34);
}

.report-progress span {
    background: var(--color-primary);
}

.report-wizard {
    gap: 0;
    width: min(100%, 820px);
    margin: 0 auto;
    padding-bottom: 30px;
}

.report-step {
    gap: 0;
}

.report-wizard .form-field label {
    color: #171719;
    font-size: 1.08rem;
    font-weight: 850;
}

.report-wizard .form-field input,
.report-wizard .form-field textarea {
    min-height: 56px;
    border-color: #e6e0db;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(36, 22, 17, 0.028);
}

.report-wizard .recap-section {
    background: #ffffff;
}

.report-wizard .recap-section .form-grid {
    gap: 0 18px;
}

.report-wizard .recap-section .form-field {
    padding: 9px 0;
    border-bottom-color: #ede6e1;
}

.report-wizard .recap-section .form-field label {
    color: #8a7777;
    font-size: 0.72rem;
}

.report-step-actions {
    background: rgba(255, 253, 251, 0.88);
}

body:has(.report-form) .app-light-footer {
    display: none;
}

@media (max-width: 760px) {
    .question-block {
        margin-bottom: 20px;
        padding: 20px 17px;
        border-radius: 22px;
    }

    .question-block__head {
        grid-template-columns: 38px 1fr;
    }

    .choice-row {
        min-height: 72px;
    }

    .report-property-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 12px;
        min-height: 0;
        padding: 14px 16px;
    }

    .report-property-bar__back,
    .report-property-bar__logout {
        min-height: 32px;
        padding: 6px 9px;
        font-size: 0.72rem;
    }

    .report-property-bar__property {
        grid-column: 1 / -1;
        order: 3;
    }

    .report-property-bar__agent {
        grid-column: 1 / 2;
        padding-left: 0;
        border-left: 0;
    }

    .report-property-bar__logo {
        width: 56px;
    }

    .report-wizard-hero {
        min-height: 330px;
        padding: 36px 26px 30px;
    }

    .report-wizard-hero__copy {
        margin-top: 72px;
    }

    .report-wizard-hero h2 {
        font-size: 1.75rem;
    }

    .report-progress {
        margin-top: 42px;
    }

    .report-step-actions {
        padding-right: 20px;
        padding-left: 20px;
    }
}

.financing-note__body {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.financing-note__body img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 20px color-mix(in srgb, var(--color-primary) 14%, transparent));
}

.financing-note__body p {
    margin: 0;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.4;
}

.form-gift-note__body p {
    margin: 7px 0 0;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-gift-note__body {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 98px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 12%, transparent);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.form-gift-note__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 14%, transparent);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-primary);
}

.form-gift-note__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.form-gift-note__body strong {
    display: block;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.3;
}

.thank-you-panel {
    max-width: 620px;
    margin: 0 auto;
    padding: 54px 32px 58px;
    border: 1px solid color-mix(in srgb, var(--color-primary) 12%, #eadfd9);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(36, 22, 17, 0.045);
    text-align: center;
}

.thank-you-panel h2 {
    margin: 34px 0 20px;
    color: var(--color-text);
    font-size: 1.62rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0;
}

.thank-you-panel p {
    max-width: 38ch;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

.review-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    color: #f4b43f;
}

.review-stars svg {
    width: 31px;
    height: 31px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1;
}

.review-qr {
    width: 270px;
    max-width: 90%;
    margin: 44px auto 30px;
    padding: 20px;
    border: 1px solid #eee3dd;
    border-radius: 22px;
    background: #fffdfb;
}

.review-qr img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.review-scan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text);
    font-size: 0.91rem;
    font-weight: 720;
    margin-top: 6px;
}

.review-scan svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--color-primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.review-return-note {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid #eee5df;
}

.review-return-note span {
    color: #8a8380;
    font-size: 0.82rem;
    font-weight: 400;
}

body:has(.report-form) .app-main {
    width: min(100%, 1120px);
}

body:has(.report-form) .page-intro {
    position: relative;
    margin-bottom: 26px;
    padding: 22px 24px;
    border: 1px solid rgba(197, 206, 216, 0.72);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--color-primary) 12%, transparent) 0%, transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, color-mix(in srgb, var(--color-primary-soft) 82%, transparent) 100%);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

body:has(.report-form) .page-intro::after {
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    background:
        radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--color-primary-soft) 76%, transparent) 0%, transparent 28%),
        radial-gradient(circle at 72% 50%, color-mix(in srgb, var(--color-primary) 82%, transparent) 0%, transparent 34%),
        linear-gradient(90deg, var(--color-primary-dark) 0%, var(--color-primary-dark) 32%, var(--color-primary) 50%, var(--color-primary-dark) 68%, var(--color-primary-dark) 100%);
    background-size: 150% 100%, 170% 100%, 100% 100%;
    content: "";
    animation: footerAmbientGlow 7s ease-in-out infinite alternate;
}

body:has(.report-form) .page-intro h2 {
    font-size: clamp(1.72rem, 3vw, 2.34rem);
}

body:has(.report-form) .page-intro p {
    max-width: 680px;
    font-size: 1.08rem;
}

.report-form {
    gap: 38px;
}

.report-form .form-grid {
    gap: 18px;
}

.report-form .form-field label {
    color: var(--color-text);
    font-size: 1.44rem;
    font-weight: 850;
    line-height: 1.15;
    margin: 0;
}

.report-form .form-field input,
.report-form .form-field textarea {
    min-height: 56px;
    padding: 13px 15px;
    border-color: color-mix(in srgb, var(--color-primary) 22%, transparent);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, color-mix(in srgb, var(--color-primary-soft) 28%, #ffffff) 100%);
    font-size: 1.04rem;
}

.report-form .form-field input:focus,
.report-form .form-field textarea:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 14%, transparent), 0 12px 24px color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.report-form .recap-section {
    background: #ffffff;
}

.report-form .recap-section .form-field {
    padding: 10px 0;
}

.report-form .recap-section .form-field label {
    color: var(--color-muted);
    font-size: 0.76rem;
}

.report-form .recap-section .form-field input {
    min-height: 0;
    padding: 0;
    background: transparent;
    font-size: 0.95rem;
    box-shadow: none;
}

@media (max-width: 640px) {
    .app-header__inner,
    .page-intro,
    .event-card__header {
        align-items: stretch;
        flex-direction: column;
    }

    .app-header__inner {
        align-items: center;
        min-height: 94px;
        padding-top: 12px;
    }

    .app-logo {
        position: static;
        order: 1;
        width: min(190px, 56vw);
        transform: none;
    }

    .app-nav {
        order: 2;
    }

    .app-nav--right {
        order: 3;
        margin-left: 0;
    }

    .app-nav {
        width: 100%;
    }

    .button-link {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .events-page .app-main {
        padding: 26px 20px 124px;
    }

    .events-page .page-intro {
        grid-template-columns: 1fr;
        min-height: 300px;
        padding: 34px 26px;
    }

    .events-page .page-intro h2 {
        font-size: clamp(2.15rem, 9vw, 3.1rem);
    }

    .events-page .events-filter {
        padding: 15px;
    }

    .events-page .event-card {
        padding: 20px 17px;
        border-radius: 22px;
    }

    .events-page .event-card__header {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 14px;
    }

    .events-page .event-card__time {
        min-height: 76px;
        font-size: 1.08rem;
        border-radius: 18px;
    }

    .events-page .event-card__meta {
        grid-template-columns: 1fr;
    }

    .feeling-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feeling-choice {
        min-height: 125px;
    }

    .form-actions {
        justify-content: stretch;
    }

    .form-gift-note__body {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .form-gift-note__icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .form-gift-note__icon svg {
        width: 22px;
        height: 22px;
    }

    .financing-note__body {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .financing-note__body p {
        font-size: 0.98rem;
    }

    body:has(.report-form) .page-intro {
        padding: 18px;
    }

    .thank-you-panel {
        grid-template-columns: 1fr;
    }

}
