@font-face {
    font-family: 'KabarettPFL';
    src: url('../fonts/Kabarett_PFL.woff2') format('woff2'),
         url('../fonts/Kabarett_PFL.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #222;
}

.container {
    max-width: 960px;
    margin: 24px auto;
    padding: 24px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

h1 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 28px;
}

p {
    line-height: 1.4;
}

.error-box {
    background: #ffe0e0;
    border: 1px solid #cc0000;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.error-box ul {
    margin: 0;
    padding-left: 20px;
}

.covers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.cover-item {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 8px;
    background: #fafafa;
    text-align: center;
    transition: background-color 0.2s ease, border 0.2s ease;
}

.cover-item label {
    cursor: pointer;
    display: block;
}

.cover-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 8px;
}

.cover-links {
    font-size: 12px;
}

.cover-links a {
    text-decoration: none;
    color: #0077cc;
}

.cover-links a:hover {
    text-decoration: underline;
}

.vote-details {
    border-top: 1px solid #ddd;
    padding-top: 16px;
    margin-top: 8px;
}

.vote-details.disabled {
    opacity: 0.6;
}

.form-row {
    margin-bottom: 12px;
}

.form-row label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.form-row input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.checkbox-row label {
    font-weight: 400;
}

button[type="submit"] {
    padding: 8px 18px;
    border-radius: 4px;
    border: none;
    background: #0077cc;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

button[type="submit"]:disabled {
    background: #999;
    cursor: default;
}

.thankyou-cover img {
    max-width: 320px;
    height: auto;
    display: block;
    margin: 16px 0;
}

.coupon-code {
    font-family: "Courier New", monospace;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .covers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .covers-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Teljes szélességű piros fejléc */
.site-header {
    width: 100%;
    background-color: #d00000;
    padding: 12px 0;
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.logo-text {
    font-family: 'KabarettPFL', sans-serif;
    color: #fff;
    font-size: 48px;
    font-weight: normal;
    line-height: 1;
    letter-spacing: 1px;
    text-shadow:
        0px 2px 4px rgba(0,0,0,0.4),
        0px 4px 8px rgba(0,0,0,0.25);
}

/* Kijelölt címlap kiemelése */
.cover-item.selected {
    background-color: #d8f5d2;
    border: 2px solid #8ddf70;
}

/* Preview üzemmódban ne legyen kattintható "szavazós" hatás */
.preview-only .cover-item {
    cursor: default;
}

/* Piros fejlécben minden szöveg legyen fehér */
.site-header {
    color: #fff;
}
.site-header h1,
.site-header p,
.site-header a,
.site-header span,
.site-header div {
    color: inherit;
}

/* Radio gombok elrejtése: a kép kattintható marad (label miatt), csak a pötty nem látszik */
.cover-radio {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* Kijelölt címlap kiemelése */
.cover-item.selected {
    background-color: #d8f5d2;
    border: 2px solid #8ddf70;
}

/* Info / prize blocks */
.info-card{
    margin: 18px 0 22px;
    padding: 18px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

.section-title{
    margin: 0 0 12px;
    font-size: 1.25rem;
    letter-spacing: .2px;
}

.steps-list{
    margin: 0;
    padding-left: 20px;
    line-height: 1.55;
}
.steps-list li{ margin: 8px 0; }

.pill{
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(255,255,255,.18);
}

.prize-lead{
    margin: 0 0 14px;
    line-height: 1.55;
}

.callout{
    margin: 14px 0;
    padding: 14px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.12);
}

.callout h3{
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.bullets{
    margin: 0;
    padding-left: 18px;
    line-height: 1.55;
}
.bullets li{ margin: 6px 0; }

.muted{
    margin: 10px 0 0;
    opacity: .85;
}

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

.meta-item{
    padding: 12px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
}

.meta-wide{ grid-column: 1 / -1; }

.meta-label{
    font-size: .85rem;
    opacity: .8;
    margin-bottom: 4px;
}

.meta-value{
    font-weight: 600;
    line-height: 1.35;
}

@media (max-width: 640px){
    .meta-grid{ grid-template-columns: 1fr; }
}

/* Timeline / date emphasis */
.timeline-card{
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,.08),
        rgba(0,0,0,.25)
    );
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 14px 32px rgba(0,0,0,.25);
}

.timeline-main{
    text-align: center;
    margin-bottom: 14px;
}

.timeline-label{
    font-size: .9rem;
    opacity: .8;
    margin-bottom: 6px;
    letter-spacing: .3px;
}

.timeline-range{
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.date-start,
.date-end{
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.2);
}

.date-sep{
    font-size: 1.2rem;
    opacity: .7;
}

.timeline-hint{
    margin-top: 8px;
    font-size: .85rem;
    opacity: .75;
}

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

.timeline-box{
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    text-align: center;
}

@media (max-width: 640px){
    .timeline-range{
        flex-direction: column;
        gap: 6px;
    }
    .timeline-meta{
        grid-template-columns: 1fr;
    }
}