:root {
    --green-900: #004032;
    --green-850: #00372d;
    --green-600: #00793f;
    --grey-line: #bababa;
    --grey-card: #d9d9d9;
    --error: #ffb3a7;
    --font-display: 'Manrope', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --steps-w: 727px;
    --content-w: 720px;
    --hero-bg-h: 466px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--green-900);
    color: #fff;
    font-family: var(--font-display);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, p, ol { margin: 0; }

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

/* ---------- Page shell ---------- */

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--green-900);
    overflow: hidden;
}

.page::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--hero-bg-h);
    background:
        linear-gradient(to bottom, rgba(0, 64, 50, 0) 48%, var(--green-900) 100%),
        url("../img/bg-pao.webp") center top / cover no-repeat;
}

.page > * { position: relative; }

/* ---------- Hero ---------- */

.hero {
    padding: 51px 21px 0;
    text-align: center;
}

.hero__logo {
    width: 278px;
    margin: 0 auto;
}

.hero__title {
    margin-top: 81px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 45px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    margin-top: 10px;
    font-size: 14px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

/* ---------- Prizes ---------- */

.prizes {
    padding: 95px 21px 46px;
}

.prizes__intro {
    margin-top: 14px;
    font-size: 14px;
    text-align: center;
}

.prizes__cards {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 21px;
    max-width: var(--content-w);
    margin: 45px auto 0;
}

.prizes__cards img:first-child { width: 348px; }
.prizes__cards img:last-child { width: 352px; }

.grand-prize {
    max-width: var(--content-w);
    min-height: 209px;
    margin: 27px auto 0;
    padding: 10px 18px 20px;
    border: 1px solid var(--green-600);
    border-radius: 12px;
    background: var(--green-900) url("../img/banner-bg.webp") center / cover no-repeat;
    font-size: 12px;
    line-height: 17px;
}

.grand-prize__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.37;
}

.grand-prize__lead {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
}

.grand-prize p + p { margin-top: 4px; }

/* ---------- How it works ---------- */

.how {
    position: relative;
    z-index: 2;
    padding: 29px 21px 60px;
    background: var(--green-600);
}

/* Κυματιστή κάτω άκρη του πράσινου section (Union στο Figma), πάνω από το φόντο της φόρμας. */
.how::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 92px;
    background: url("../img/how-wave.svg?v=2") center top / 100% 100% no-repeat;
    pointer-events: none;
}

.how__steps {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    column-gap: 20px;
    row-gap: 9px;
    max-width: var(--steps-w);
    margin: 28px auto 0;
    padding-left: 21px;
    font-size: 14px;
    line-height: 1.21;
}

.how__steps strong {
    display: block;
    font-weight: 700;
}

/* ---------- Bottom (form + footer) ---------- */

.bottom {
    flex: 1;
    padding: 78px 21px 36px;
    background: var(--green-900) url("../img/form-bg.webp") center top / cover no-repeat;
}

.entry {
    width: 348px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 24px 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.09);
    -webkit-backdrop-filter: blur(19.7px);
    backdrop-filter: blur(19.7px);
}

.entry__closed {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.entry__alert {
    margin-bottom: 20px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 90, 70, 0.18);
    font-family: var(--font-body);
    font-size: 13px;
    line-height: 1.4;
}

.field { margin-bottom: 34px; }

.field__input,
.field__select,
.field__static {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 1px;
    border: 0;
    border-bottom: 1px solid var(--grey-line);
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.4;
    outline: none;
}

.field__input::placeholder { color: #fff; opacity: 1; }

.field__input:focus,
.field__select:focus { border-bottom-color: #fff; }

.field__select {
    padding-right: 28px;
    appearance: none;
    -webkit-appearance: none;
    background: url("../img/chevron.svg") right 6px center / 15px 9px no-repeat;
    cursor: pointer;
    text-overflow: ellipsis;
}

.field__select option { color: #000; }

.field [aria-invalid="true"] { border-bottom-color: var(--error); }

.field__error {
    margin-top: 6px;
    color: var(--error);
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.3;
}

.consents {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.21;
}

.consents .field__error { margin: 4px 0 0 17px; }

.check {
    display: flex;
    gap: 6px;
    cursor: pointer;
}

.check + .check,
.consents .field__error + .check { margin-top: 15px; }

.check input {
    flex: none;
    width: 11px;
    height: 11px;
    margin: 2px 0 0;
    border: 1px solid #fff;
    border-radius: 1px;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.check input:checked {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%2300793f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.check input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.check input[aria-invalid="true"] { border-color: var(--error); }

.btn {
    display: block;
    width: 100%;
    height: 42px;
    margin-top: 40px;
    border: 1px solid var(--green-600);
    border-radius: 61px;
    background: #fff;
    color: var(--green-600);
    font-family: var(--font-display);
    font-size: 16px;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.btn:hover,
.btn:focus-visible {
    background: var(--green-600);
    color: #fff;
}

.btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Footer ---------- */

.footer {
    width: 348px;
    max-width: 100%;
    margin: 25px auto 0;
    font-family: var(--font-body);
    font-size: 10px;
    line-height: 1.21;
    text-align: center;
}

.footer__links {
    margin: 24px 0;
}

.footer__links a {
    text-decoration: none;
}

.footer__links a:hover { text-decoration: underline; }

.footer__links a + a::before {
    content: "|";
    display: inline-block;
    margin: 0 6px;
}

/* ---------- Thank you ---------- */

.thanks { --hero-bg-h: 780px; }

.thanks__main {
    padding: 70px 21px 67px;
}

.confirm {
    max-width: var(--content-w);
    min-height: 355px;
    margin: 0 auto;
    padding: 75px 24px 60px;
    border-radius: 14px;
    background: var(--grey-card);
    text-align: center;
}

.confirm__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--green-600);
}

.confirm__title {
    margin-top: 16px;
    color: var(--green-900);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.confirm__text {
    max-width: 574px;
    margin: 16px auto 0;
    color: var(--green-850);
    font-size: 16px;
    line-height: 1.5;
}

.thanks .bottom { padding-top: 21px; }

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
    :root { --hero-bg-h: 328px; }
    .thanks { --hero-bg-h: 640px; }

    .hero__logo { width: 220px; }

    .hero__title {
        margin-top: 44px;
        font-size: 28px;
    }

    .hero__subtitle {
        margin-top: 8px;
        font-size: 12px;
    }

    .prizes { padding-top: 33px; padding-bottom: 44px; }

    .prizes__title { display: none; }

    .prizes__intro {
        max-width: 348px;
        margin: 0 auto;
        font-size: 12px;
    }

    .prizes__cards {
        flex-direction: column;
        align-items: center;
        gap: 33px;
        margin-top: 30px;
    }

    .grand-prize {
        max-width: 348px;
        min-height: 274px;
        margin-top: 33px;
        padding: 14px 13px 20px 17px;
    }

    .grand-prize__lead { margin-top: 14px; }

    .how { padding: 29px 21px 36px; }

    .how__steps {
        grid-template-rows: none;
        grid-auto-flow: row;
        margin-top: 24px;
        padding-left: 18px;
        font-size: 12px;
    }

    .bottom { padding-top: 73px; }

    .footer { margin-top: 39px; }

    .thanks__main { padding-top: 48px; }

    .confirm {
        min-height: 0;
        padding: 48px 20px 44px;
    }

    .confirm__title { font-size: 24px; }

    .confirm__text { font-size: 14px; }
}

/* ---------- Legal pages ---------- */

.legal-page { --hero-bg-h: 420px; }

.legal {
    width: 100%;
    max-width: calc(var(--content-w) + 42px);
    margin: 0 auto;
    padding: 48px 21px 64px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
}

.legal__title {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.legal h3 {
    margin: 24px 0 6px;
    font-size: 14px;
    font-weight: 700;
}

.legal p { margin: 0 0 6px; }

.legal ul {
    margin: 0 0 6px;
    padding-left: 22px;
}

.legal ul ul { margin: 0; }

.legal strong { font-weight: 600; }

.legal a { text-decoration: underline; }

/* Placeholder κειμένου που λείπει: να αντικατασταθεί πριν το go-live. */
.legal .todo {
    padding: 8px 12px;
    border-left: 3px solid #f5c542;
    background: rgba(245, 197, 66, 0.12);
    color: #f8e3a3;
}

@media (max-width: 760px) {
    .legal-page { --hero-bg-h: 328px; }
    .legal { padding-top: 32px; }
}
