/* FJØRD Kids Contest - Frontend Styles */

@font-face {
    font-family: 'Intro';
    src: url('/public/font/Intro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Intro';
    src: url('/public/font/Intro-Book.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Intro';
    src: url('/public/font/Intro-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Source Sans Pro */
@font-face {
    font-family: 'Source Sans Pro';
    src: url('/font/SourceSansPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('/font/SourceSansPro-It.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('/font/SourceSansPro-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('/font/SourceSansPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue-navy: #1f3f77;
    --blue-dark: #2e6db4;
    --blue-mid: #4a97cf;
    --blue-soft: #7bbde4;
    --blue-pale: #a7d4ee;
    --blue-form: #a9d6ef;
    --blue-bg: #cbe9f8;
    --orange: #f5a300;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --radius: 16px;
}

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

body {
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

body { font-family: 'Intro', sans-serif; }
h1, h2, h3 { font-family: 'Intro', sans-serif; }
.img-fluid {
    max-width: 100%;
    height: auto;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 760px;
}

/* ===== Header ===== */
.page {
    background: var(--white);
}
.header {
    position: relative;
    z-index: 2;
}
.header__waves {
    line-height: 0;
}

.header__waves-svg {
    display: block;
    width: 100%;
    height: clamp(110px, 14vw, 190px);
}

.header__inner {
    text-align: center;
    padding-top: clamp(24px, 5vw, 56px);
}

.header__title {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--blue-navy);
    margin-bottom: 32px;
    margin-top: 160px;
    @media (max-width: 768px) {
        margin-top: 100px;
    }
}

.header__title-line { display: block; }

.header__title-vaikai .letter { display: inline-block; }
.letter--red    { color: #e94f35; }
.letter--orange { color: #f5a300; }
.letter--green  { color: #6abf4b; }
.letter--cyan   { color: #3bb3e5; }
.letter--pink   { color: #e85d9a; }
.letter--teal   { color: #2bb5a0; }

.header__pill {
    display: inline-block;
    background: #4a83c9;
    color: var(--white);
    border-radius: 100px;
    padding: 22px 40px;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    line-height: 1.55;
    max-width: 660px;
    margin: 0 auto 44px;
}

.header__subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    color: var(--blue-navy);
    margin-bottom: 8px;
}

.header__tags {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-dark);
    max-width: 480px;
    margin: 0 auto 28px;
}

.header__desc {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Hero visual (pakuotė + prizas) ===== */
.hero-visual {
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin-top: -100px;
    @media (max-width: 768px) {
        margin-top: 0;
        .container {
            padding: 0;
        }
    }
}

.hero-visual__inner {
    position: relative;
}

.hero-visual__scene {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
    min-height: 320px;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95) 0%, rgba(190,228,247,0.75) 45%, rgba(110,180,225,0.55) 100%);
    box-shadow: inset -6px -8px 14px rgba(38,116,171,0.25), inset 4px 6px 10px rgba(255,255,255,0.8), 0 6px 14px rgba(38,116,171,0.15);
}

.bubble--sm { width: 26px; height: 26px; right: 32%; top: -6px; }
.bubble--md { width: 52px; height: 52px; right: 40%; top: 34px; }
.bubble--side { width: 34px; height: 34px; right: 22%; top: 46%; }

.hero-visual__callout {
    position: absolute;
    left: clamp(0px, 8vw, 120px);
    top: -30px;
    z-index: 2;
    text-align: center;
}

.hero-visual__callout-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(120px, 16vw, 170px);
    height: clamp(120px, 16vw, 170px);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.98) 0%, rgba(200,232,248,0.9) 45%, rgba(120,185,228,0.8) 100%);
    box-shadow: inset -8px -10px 18px rgba(38,116,171,0.3), inset 6px 8px 12px rgba(255,255,255,0.9), 0 10px 22px rgba(38,116,171,0.2);
    color: var(--blue-navy);
    font-size: clamp(0.8rem, 1.6vw, 1.05rem);
    font-weight: 800;
    line-height: 1.3;
}

.hero-visual__arrow {
    width: 60px;
    height: 52px;
    margin: 4px 0 0 60%;
}

.hero-visual__label {
    position: absolute;
    left: clamp(4px, 6vw, 90px);
    top: 46%;
    font-size: 0.78rem;
    color: #9aa7b1;
    text-align: center;
    line-height: 1.4;
}

.hero-visual__product-wrap {
    position: relative;
    z-index: 1;
}

.hero-visual__product {
    max-width: clamp(240px, 36vw, 380px);
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(31,63,119,0.25));
}

.hero-visual__product-fallback { display: none; }

.product-box {
    width: clamp(220px, 30vw, 300px);
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(31,63,119,0.25);
    transform: rotate(12deg);
    text-align: center;
}

.product-box__pattern {
    padding: 18px 8px;
    font-size: 1.3rem;
    letter-spacing: 4px;
    background: #f4fbff;
}

.product-box__band {
    background: var(--orange);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 2px;
    padding: 10px;
}

.product-box__sub {
    background: var(--orange);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 0 0 10px;
}

.hero-visual__prize-wrap {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    margin-top: -320px;
    padding-bottom: 100px;
    @media (max-width: 768px) {
        margin-top: -100px;
        padding-bottom: 0;
    }
}

.hero-visual__gift {
    position: absolute;
    top: -58px;
    left: 76px;
    width: 88px;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 8px 16px rgba(31,63,119,0.25));
}

.hero-visual__gift-fallback {
    display: none;
    position: absolute;
    top: -52px;
    left: 84px;
    font-size: 3rem;
    z-index: 1;
    filter: drop-shadow(0 6px 12px rgba(31,63,119,0.25));
}

.hero-visual__prize {
    background: var(--orange);
    color: var(--white);
    border-radius: 22px;
    padding: 34px 44px;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.65;
    text-align: center;
}

/* ===== Kaip dalyvauti ===== */
.steps {
    background: var(--white);
    padding: 56px 0 64px;
}

.steps__title {
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.steps__list {
    list-style: none;
}

.steps__row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid #d9d9d9;
}

.steps__row:last-child {
    border-bottom: 1px solid #d9d9d9;
}

.steps__num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.steps__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.steps__icon--pencil {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='16' y='4' width='9' height='24' rx='1' transform='rotate(35 20 16)' fill='%23f5c518'/%3E%3Cpolygon points='9,32 15,29 11,25' fill='%23f0b090'/%3E%3Cpolygon points='9,32 12,30.5 10,28.5' fill='%23333'/%3E%3C/svg%3E");
}

.steps__icon--camera {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='4' y='12' width='32' height='22' rx='5' fill='%237b68ee'/%3E%3Crect x='13' y='7' width='14' height='9' rx='3' fill='%237b68ee'/%3E%3Ccircle cx='20' cy='23' r='8' fill='%23fff'/%3E%3Ccircle cx='20' cy='23' r='5.5' fill='%234a3fbf'/%3E%3Ccircle cx='22' cy='21' r='1.8' fill='%23fff'/%3E%3C/svg%3E");
}

.steps__icon--envelope {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='4' y='12' width='32' height='21' rx='3' fill='%23f2a0bb'/%3E%3Cpath d='M5,31 L17,21 h6 L35,31' fill='%23e884a6'/%3E%3Cpath d='M6,13.5 L20,24 L34,13.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

.steps__row p {
    font-size: clamp(0.95rem, 1.9vw, 1.05rem);
    font-weight: 700;
    line-height: 1.5;
    padding-top: 4px;
}

.steps__row a {
    color: var(--blue-dark);
}

/* ===== Anketa ===== */
.form-section {
    background: var(--blue-bg);
    padding: 64px 0 56px;
}

.form-section__title {
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 28px;
}

.alert {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert--success {
    background: #d7f0d9;
    color: #1e5c24;
}

.alert--error {
    background: #f8d7da;
    color: #721c24;
}

.alert--error ul { padding-left: 20px; }

.form-card {
    background: var(--blue-form);
    border-radius: 6px;
    padding: 36px 40px 32px;
}

.form-card__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
    row-gap: 22px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-navy);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-radius: 22px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.upload-area input[type="file"]:focus-visible ~ .upload-area__label {
    outline: 2px solid var(--blue-dark);
}

.form-group--upload,
.form-group--comment {
    margin-top: 10px;
}

.upload-area {
    position: relative;
    background: var(--white);
    border-radius: 14px;
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    overflow: hidden;
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-area__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue-navy);
    line-height: 1.5;
}

.upload-area__label small {
    font-weight: 400;
    font-size: 0.78rem;
}

.upload-area__icon {
    flex-shrink: 0;
    width: 96px;
}

.upload-area__icon svg {
    width: 100%;
    height: auto;
    display: block;
}

.upload-area__preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--white);
    z-index: 1;
}

.form-group--comment textarea {
    border-radius: 14px;
    min-height: 130px;
    resize: vertical;
    font-size: 0.85rem;
}

.form-group--comment textarea::placeholder {
    color: var(--blue-navy);
    opacity: 0.85;
}

.form-card__submit {
    text-align: center;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    border: none;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn--submit {
    background: var(--blue-navy);
    color: var(--white);
    font-size: 0.95rem;
    letter-spacing: 2px;
    padding: 13px 64px;
    border-radius: 26px;
}

.btn--submit:hover { background: #16295a; }

/* Sutikimai */
.consents {
    margin-top: 30px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    flex-shrink: 0;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 4px;
    border: 1px solid #cfd8e0;
    cursor: pointer;
    display: grid;
    place-content: center;
    margin-top: 2px;
}

.checkbox input[type="checkbox"]:checked::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--blue-navy);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox span {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--text-dark);
    text-align: justify;
}

.consents__note {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 4px;
}

.form-links {
    margin-top: 28px;
    font-size: 0.8rem;
}

.form-links p { margin-bottom: 6px; }

.form-links a {
    color: var(--blue-dark);
}

/* El. pašto instrukcijų blokas */
.email-box {
    background: #f7f7f7;
    padding: 40px 48px;
    margin-top: 40px;
}

.email-box__lead {
    font-size: clamp(0.95rem, 1.9vw, 1.05rem);
    color: var(--blue-navy);
    margin-bottom: 18px;
}

.email-box__lead a { color: var(--blue-dark); }

.email-box__list {
    list-style: none;
    margin-bottom: 26px;
}

.email-box__list li {
    position: relative;
    padding: 3px 0 3px 34px;
    font-size: 0.95rem;
}

.email-box__list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 15px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 12'%3E%3Cpath d='M1,6 L5,10 L14,1' fill='none' stroke='%23f5a300' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.email-box__consent {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Galerija ===== */
.gallery-section {
    background: #0885d2;
    position: relative;
}

.gallery-section__waves {
    display: none;
    line-height: 0;
    background: var(--blue-bg);
}

.gallery-section__waves svg {
    display: block;
    width: 100%;
    height: clamp(70px, 10vw, 150px);
}

.gallery-section__inner {
    position: relative;
    text-align: center;
    padding-bottom: 70px;
}

.gallery-section__arch {
    width: min(860px, 92%);
    height: auto;
    margin: 0 auto 10px;
    display: block;
    padding-top: 50px;
}

.gallery-section__arch-text {
    fill: var(--white);
    font-size: 38px;
    font-weight: 800;
}
.vawes {
    background-color: var(--blue-bg);
    background-image: url('/public/images/waves2.png');
    background-repeat: repeat-x;
    background-position: top center;
    height: 330px;
}
.waves-section {
    background-image: url('/public/images/waves-seamless3.svg');
    background-repeat: repeat-x;
    background-position: top left;
    background-size: 600px 174px;
    background-color: var(--blue-bg);
    height: 170px;
    @media (max-width: 768px) {
        background-size: 378px 190px;
        height: 149px;
    }
}
.bubble--g1 { width: 26px; height: 26px; right: 6%; top: 120px; }
.bubble--g2 { width: 44px; height: 44px; right: 2%; top: 210px; }

.gallery-section__count {
    color: var(--white);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 800;
    padding: 26px 0 18px;
    text-align: center;
}

.gallery-section__sub {
    color: var(--white);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    max-width: 560px;
    margin: 0 auto 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px 14px;
    max-width: 820px;
    margin: 0 auto;
}

.gallery-item {
    text-align: left;
}

.gallery-item__image {
    aspect-ratio: 5/4;
    background: var(--white);
    overflow: hidden;
}

.gallery-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item__pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 800;
    color: var(--blue-dark);
    text-decoration: none;
}

.gallery-item__caption {
    display: flex;
    flex-direction: column;
    padding-top: 6px;
    color: var(--white);
    line-height: 1.35;
}

.gallery-item__name {
    font-size: 0.72rem;
    font-weight: 800;
}

.gallery-item__city {
    font-size: 0.72rem;
}

.gallery-section__more {
    margin-top: 40px;
}

.btn--more {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 10px 42px;
    font-size: 1rem;
    border-radius: 26px;
}

.btn--more:hover { background: rgba(255,255,255,0.15); }

/* ===== Footer ===== */
.footer {
    background: #0885d2;
    padding: 44px 0 32px;
}

.footer__inner {
    text-align: center;
}

.btn--footer {
    background: #FFF;
    color: var(--blue-navy);
    font-size: 1.15rem;
    padding: 15px 52px;
    border-radius: 30px;
}

.btn--footer:hover { background: #d98f00; }

.footer__copy {
    color: rgba(255,255,255,0.6);
    margin-top: 22px;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-visual__callout {
        left: 0;
        top: -20px;
    }

    .hero-visual__label { display: none; }
}

@media (max-width: 700px) {
    .form-card { padding: 26px 22px; }

    .form-card__grid {
        grid-template-columns: 1fr;
        row-gap: 16px;
    }

    .email-box { padding: 28px 22px; }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-visual__gift {        
        left: 35px;
        width: 89px;
        top: -75px; 
    }
    .hero-visual__gift-fallback { left: 18px; top: -40px; font-size: 2.4rem; }

    .hero-visual__prize { padding: 26px 24px; margin: 0 20px;}

    .gallery-section__arch-text { font-size: 46px; }
    .bubble {
        display: none;
    }
}

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

    .hero-visual__callout-bubble {
        width: 104px;
        height: 104px;
        font-size: 0.72rem;
    }

    .hero-visual__arrow { width: 44px; }

    .header__pill {
        padding: 18px 24px;
    }
}
.footer__inner-p {
    color: #FFF;
    padding-bottom: 2rem;
}

.header-waves {
    position: relative;
}

.header-waves::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: url('/public/images/waves-seamless3.svg');
    background-repeat: repeat-x;
    background-position: top left;
    transform: rotate(180deg);
    background-size: 600px 198px;
    height: 186px;
    @media (max-width: 768px) {
        background-size: 378px 147px;
        height: 128px;
    }
}   

/* ===== Legal pages ===== */
.legal-page {
    background: var(--white);
    padding: 40px 0 80px;
    color: var(--text-dark);
}

.legal-page__back {
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.legal-page__back a {
    color: var(--blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.legal-page__back a:hover {
    text-decoration: underline;
}

.legal-page__title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: var(--blue-navy);
    margin-bottom: 8px;
    line-height: 1.25;
}

.legal-page__updated {
    font-size: 0.9rem;
    color: #6a7a88;
    margin-bottom: 28px;
}

.legal-page h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blue-navy);
    margin: 32px 0 12px;
}

.legal-page h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue-dark);
    margin: 22px 0 10px;
}

.legal-page p {
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.legal-page ul {
    margin: 0 0 16px 1.2rem;
    padding: 0;
}

.legal-page li {
    margin-bottom: 8px;
    line-height: 1.65;
    font-size: 0.95rem;
}

.legal-page a {
    color: var(--blue-dark);
    font-weight: 700;
}

.legal-page blockquote {
    margin: 16px 0 20px;
    padding: 16px 20px;
    background: #f2f8fc;
    border-left: 4px solid var(--blue-mid);
    border-radius: 0 8px 8px 0;
    font-size: 0.92rem;
    line-height: 1.65;
}

.legal-page__nav {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e0e8ef;
    font-size: 0.95rem;
}   