:root {
    --red: #c90012;
    --red-dark: #8f0010;
    --gold: #d8a02a;
    --ink: #151515;
    --muted: #646464;
    --line: #e7dccb;
    --surface: #ffffff;
    --soft: #fff8ec;
    --success: #effaf1;
    --error: #fff0f0;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(216, 160, 42, .16), transparent 360px),
        linear-gradient(135deg, #fff 0%, #fff9f0 48%, #f4ecdf 100%);
}

a {
    color: var(--red);
}

.page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 48px;
}

.public-page {
    width: min(940px, calc(100% - 24px));
}

.public-header {
    display: grid;
    justify-items: center;
    padding: 18px 0 16px;
    border-bottom: 1px solid rgba(216, 160, 42, .36);
}

.public-header img {
    display: block;
    width: 520px;
    max-width: 100%;
    height: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.brand img {
    width: 310px;
    max-width: 100%;
    height: auto;
}

.intro {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: 22px 0 24px;
    text-align: center;
}

.intro > div {
    display: grid;
    justify-items: center;
}

.event-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    border: 1px solid rgba(216, 160, 42, .55);
    border-radius: 999px;
    padding: 7px 13px;
    color: var(--red);
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 10px 26px rgba(143, 0, 16, .06);
}

.event-pill strong {
    font-size: 22px;
    line-height: 1;
}

.event-pill span {
    color: #2b2b2b;
    font-size: 14px;
    font-weight: 800;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: center;
    padding: 24px 0 28px;
}

.eyebrow {
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 6px 0 14px;
    max-width: 760px;
    font-size: 48px;
    line-height: 1.04;
    letter-spacing: 0;
}

.script {
    display: block;
    color: var(--red-dark);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: .54em;
    font-style: italic;
    font-weight: 400;
}

.lead {
    max-width: 760px;
    margin: 0;
    color: #333;
    font-size: 18px;
    line-height: 1.55;
    text-align: center;
}

.hero-badge {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border: 2px solid rgba(216, 160, 42, .55);
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 22px 70px rgba(143, 0, 16, .12);
}

.hero-badge strong {
    color: var(--red);
    font-size: 142px;
    line-height: .8;
    text-shadow: 0 3px 0 #8f0010, 0 0 18px rgba(216, 160, 42, .55);
}

.hero-badge span {
    color: var(--gold);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 42px;
    font-style: italic;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 60px rgba(70, 20, 10, .08);
}

.form-panel {
    padding: 26px;
}

.application-card {
    overflow: hidden;
}

.form-section {
    padding: 0 0 24px;
}

.form-section + .form-section {
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.section-title {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 18px;
}

.section-title span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    background: var(--red);
}

.section-title h2 {
    margin: 0 0 4px;
    font-size: 21px;
    line-height: 1.2;
}

.section-title p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

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

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d8c8ad;
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    font: inherit;
    background: #fff;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--red);
    outline: 3px solid rgba(201, 0, 18, .13);
}

.field-error {
    border-color: var(--red);
    background: #fff7f7;
}

.bot-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.category-summary {
    border: 1px solid rgba(216, 160, 42, .42);
    border-radius: 8px;
    padding: 12px 14px;
    color: #3b2b12;
    font-size: 14px;
    line-height: 1.45;
    background: var(--soft);
}

.category-panel {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.category-panel[hidden] {
    display: none;
}

.warning-box {
    position: relative;
    margin-bottom: 18px;
    border: 2px solid rgba(201, 0, 18, .72);
    border-radius: 8px;
    padding: 15px 16px 14px;
    color: #26070a;
    background:
        linear-gradient(90deg, rgba(201, 0, 18, .1), rgba(216, 160, 42, .1)),
        #fff7e8;
    box-shadow: 0 12px 30px rgba(143, 0, 16, .12);
}

.warning-box::before {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 7px;
    height: calc(100% + 4px);
    border-radius: 8px 0 0 8px;
    background: var(--red);
    content: "";
}

.warning-title {
    display: inline-flex;
    align-items: center;
    margin-bottom: 9px;
    border-radius: 999px;
    padding: 6px 11px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    background: var(--red);
}

.warning-box ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 22px;
    line-height: 1.45;
}

.warning-box li::marker {
    color: var(--red);
}

.warning-box strong {
    color: var(--red-dark);
}

.hint {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.notice {
    margin: 0 0 18px;
    border: 1px solid #f0d9a2;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff6de;
}

.notice strong {
    display: block;
    margin-bottom: 4px;
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 19px;
}

.success {
    border-color: #b8dfc0;
    background: var(--success);
}

.success b {
    color: #0f6d27;
    white-space: nowrap;
}

.error {
    border-color: #f0b6b6;
    background: var(--error);
}

.kvkk {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    align-items: start;
    color: #2d2d2d;
    line-height: 1.45;
}

.kvkk.compact {
    margin-top: 14px;
    font-size: 14px;
}

.photo-confirm {
    border: 1px solid rgba(201, 0, 18, .32);
    border-radius: 8px;
    padding: 12px;
    color: #22060a;
    font-weight: 800;
    background: #fff1f1;
}

.kvkk input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.form-footer {
    display: grid;
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 0 20px;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(180deg, #db0016, #a90010);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(169, 0, 16, .2);
}

.btn.secondary {
    color: var(--red);
    border: 1px solid rgba(201, 0, 18, .3);
    background: #fff;
    box-shadow: none;
}

.submit-btn {
    width: 100%;
    min-height: 54px;
    font-size: 17px;
}

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

.rule {
    border-left: 4px solid var(--red);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, .72);
}

.rule strong {
    display: block;
    margin-bottom: 5px;
}

.admin-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    border-bottom: 1px solid #eee3d1;
    padding: 11px 12px;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

td.wrap,
th.wrap {
    min-width: 220px;
    white-space: pre-wrap;
}

th {
    color: #fff;
    background: var(--red-dark);
}

.login {
    width: min(440px, calc(100% - 32px));
    margin: 8vh auto;
}

.login .brand {
    justify-content: center;
}

@media (max-width: 860px) {
    .page,
    .public-page {
        width: min(100% - 20px, 720px);
        padding: 14px 0 34px;
    }

    .public-header {
        padding: 16px 0 14px;
    }

    .intro {
        padding-top: 18px;
    }

    .hero,
    .grid,
    .rules {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 34px;
    }

    .lead {
        font-size: 16px;
    }

    .form-panel {
        padding: 18px;
    }

    .section-title {
        grid-template-columns: 36px 1fr;
    }

    .section-title span {
        width: 36px;
        height: 36px;
    }

    .actions .btn {
        flex: 1 1 150px;
    }

    .hero-badge {
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-badge strong {
        font-size: 112px;
    }
}

@media (max-width: 430px) {
    .public-header img {
        max-width: 96%;
    }

    h1 {
        font-size: 30px;
    }

    .form-panel {
        padding: 15px;
    }

    .section-title h2 {
        font-size: 19px;
    }
}
