/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1f2933;
    background-color: #fff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.cta-button,
.card,
.list li,
.hero-info-card,
form,
.faq-item,
#thank-you,
.mobile-fixed-cta {
    border-radius: 10px;
}

.card,
.list li,
.hero-info-card,
form,
.faq-item {
    box-shadow: 0 10px 24px rgba(13, 44, 76, 0.08);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

section,
#prijava {
    scroll-margin-top: 80px;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.96);
    padding: 10px 0;
    border-bottom: 1px solid #e5eaf0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #003366;
    letter-spacing: 0;
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
}

.sticky-cta {
    padding: 9px 16px;
    margin-top: 0;
    font-size: 0.9rem;
    background: transparent;
    color: #061a3d;
    border: 2px solid #061a3d;
    box-shadow: none;
}

.sticky-cta:hover,
.sticky-cta:focus {
    background: #061a3d;
    color: #fff;
    box-shadow: 0 8px 18px rgba(6, 26, 61, 0.18);
    transform: none;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: url('/static/brand/hero-background-clean.jpg') no-repeat center center;
    background-size: cover;
    padding: 48px 0 40px;
    text-align: left;
    border-bottom: 1px solid #e8eef5;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.9) 42%,
        rgba(255, 255, 255, 0.45) 68%,
        rgba(255, 255, 255, 0.12) 100%
    );
    z-index: 0;
}

.hero .container {
    max-width: 1140px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-copy {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-small-text {
    display: inline-block;
    font-size: 0.88rem;
    color: #003366;
    margin-bottom: 14px;
    padding: 6px 11px;
    background-color: #e8f2ff;
    border: 1px solid #cfe1f7;
    border-radius: 999px;
    font-weight: bold;
}

.hero h2 {
    font-size: 2.65rem;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 800;
    color: #002b57;
    max-width: 860px;
}

.hero-subtitle {
    font-size: 1.12rem;
    line-height: 1.62;
    margin-bottom: 14px;
    max-width: 700px;
    color: #34495e;
}

.hero-highlight {
    font-weight: bold;
    color: #003366;
    line-height: 1.5;
    margin-bottom: 6px;
    max-width: 700px;
}

.cta-note {
    color: #5f6f82;
    font-size: 0.98rem;
    margin-top: 12px;
}

.hero-info-card {
    background-color: rgba(244, 247, 251, 0.9);
    border: 1px solid #dbe5ef;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(13, 44, 76, 0.08);
    position: relative;
    z-index: 2;
    transform: translate(10px, 8px);
}

.hero-info-card h3 {
    color: #003366;
    font-size: 1.25rem;
    line-height: 1.25;
    margin-bottom: 14px;
}

.hero-info-card ul {
    list-style: none;
}

.hero-info-card li {
    padding: 11px 0;
    color: #243b53;
    font-weight: bold;
    border-top: 1px solid #dce6f1;
}

.cta-button {
    background: linear-gradient(180deg, #064b8f 0%, #003366 100%);
    color: #fff;
    padding: 16px 30px;
    text-decoration: none;
    border: 0;
    font-weight: bold;
    font-size: 1.04rem;
    display: inline-block;
    margin-top: 14px;
    box-shadow: 0 14px 28px rgba(0, 51, 102, 0.24);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.hero .cta-button {
    background: #e10600;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(225, 6, 0, 0.22);
}

.hero .cta-button:hover,
.hero .cta-button:focus {
    background: #b90500;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(225, 6, 0, 0.3);
}

.hero-brand-symbol {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(210px, 26vw, 430px);
    z-index: 1;
    animation: gHeroRise 900ms cubic-bezier(.18, .9, .22, 1) both;
    pointer-events: none;
    opacity: 0.84;
    background: transparent !important;
}

.hero-brand-symbol img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 32px 55px rgba(6, 26, 61, 0.28));
    background: transparent !important;
}

.hero-brand-symbol::before {
    content: "";
    position: absolute;
    inset: 8%;
    background: radial-gradient(circle, rgba(225, 6, 0, 0.22), transparent 65%);
    filter: blur(28px);
    z-index: -1;
    opacity: 0.65;
}

@keyframes gHeroRise {
    from {
        opacity: 0;
        transform: translateY(calc(-50% + 36px)) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.cta-button:hover,
.cta-button:focus {
    background: linear-gradient(180deg, #0759aa 0%, #003c78 100%);
    box-shadow: 0 14px 28px rgba(0, 51, 102, 0.28);
    transform: translateY(-1px) scale(1.015);
}

.cta-button:disabled,
.cta-button.is-loading {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.cta-button.is-loading::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 10px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.cta-button:focus,
form input:focus,
form select:focus,
form textarea:focus {
    outline: 2px solid #003366;
    outline-offset: 2px;
}

/* Sections */
.section {
    padding: 38px 0;
    border-bottom: 1px solid #eef2f6;
    scroll-margin-top: 80px;
}

.section:nth-of-type(even) {
    background-color: #fbfcfe;
}

.section h3 {
    font-size: 1.8rem;
    margin-bottom: 14px;
    color: #003366;
    text-align: center;
    line-height: 1.2;
}

.section p {
    font-size: 1.05rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* List */
.list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.list li {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 20px;
    border: 1px solid #e5eaf0;
    width: 210px;
    text-align: center;
    line-height: 1.45;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

/* Cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.card {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 20px;
    border: 1px solid #e5eaf0;
    width: 250px;
    text-align: center;
    line-height: 1.45;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.list li:hover,
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(13, 44, 76, 0.12);
}

.mid-cta {
    margin-top: 26px;
    text-align: center;
}

/* Form */
.form-header {
    max-width: 720px;
    margin: 0 auto 10px;
    text-align: center;
}

.form-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #002b57;
}

.form-header p {
    color: #34495e;
}

.form-intro {
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.02rem;
}

form {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    background-color: #fff;
    border: 1px solid #e5eaf0;
    scroll-margin-top: 80px;
}

.form-row {
    display: block;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #243b53;
}

form input, form select, form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #1f2933;
    background-color: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

form input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
}

label[for="wants_coordinator"] {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.45;
    margin-bottom: 16px;
}

form button.cta-button {
    width: 100%;
}

form input::placeholder,
form textarea::placeholder {
    color: #8a9aab;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: #064b8f;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.12);
}

form input.input-error,
form select.input-error,
form textarea.input-error {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.field-error {
    display: block;
    margin: -10px 0 14px;
    color: #8a1f11;
    font-size: 0.88rem;
    line-height: 1.35;
}

form textarea {
    height: 88px;
}

.privacy-note {
    max-width: 600px;
    margin: 14px auto 0;
    color: #5f6f82;
    font-size: 0.92rem;
    text-align: center;
}

.trust-note {
    max-width: 600px;
    margin: 10px auto 0;
    color: #003366;
    font-size: 0.98rem;
    font-weight: bold;
    text-align: center;
}

.form-error {
    color: #8a1f11;
    font-size: 0.95rem;
    margin: 0 0 16px;
    text-align: left;
}

#thank-you {
    max-width: 640px;
    margin: 20px auto 0;
    padding: 22px 24px 22px 66px;
    background-color: #eefaf3;
    border: 1px solid #bfe8cf;
    box-shadow: 0 14px 30px rgba(31, 138, 76, 0.1);
    position: relative;
    scroll-margin-top: 100px;
}

#thank-you::before {
    content: "\2713";
    position: absolute;
    top: 22px;
    left: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #1f8a4c;
    color: #fff;
    font-weight: bold;
    line-height: 30px;
    text-align: center;
}

#thank-you p {
    color: #1f5130;
    text-align: left;
}

#thank-you p + p {
    margin-top: 10px;
}

.share-loop {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #bfe8cf;
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.share-button {
    display: inline-block;
    padding: 10px 12px;
    border: 1px solid #bfe8cf;
    border-radius: 8px;
    background: #fff;
    color: #003366;
    font: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.share-button:hover,
.share-button:focus {
    background: #f7fbff;
}

.share-feedback {
    color: #1f6b3a;
    font-weight: bold;
}

.hidden {
    display: none;
}

/* FAQ */
#faq {
    margin-top: 8px;
}

.faq-item {
    max-width: 820px;
    margin: 0 auto 12px;
    padding: 18px 20px;
    background-color: #fff;
    border: 1px solid #e5eaf0;
}

.faq-item h4 {
    font-size: 1.12rem;
    color: #003366;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: #f7f9fc;
    padding: 26px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.mobile-fixed-cta {
    display: none;
}

/* Mobile-first */
@media (max-width: 768px) {
    body {
        padding-bottom: 72px;
    }

    .hero {
        padding: 34px 0 30px;
    }

    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.94) 0%,
            rgba(255, 255, 255, 0.88) 58%,
            rgba(255, 255, 255, 0.68) 100%
        );
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero h2 {
        font-size: 1.85rem;
        line-height: 1.16;
    }

    .hero-subtitle {
        font-size: 1.02rem;
        line-height: 1.55;
    }

    .hero-info-card {
        padding: 20px;
        transform: none;
    }

    .section {
        padding: 30px 0;
    }

    .section h3 {
        font-size: 1.5rem;
    }

    .list li, .card {
        width: 100%;
        min-height: 86px;
    }

    header .container {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .brand-logo {
        height: 42px;
    }

    .sticky-cta {
        align-self: stretch;
        text-align: center;
    }

    form {
        padding: 20px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .sticky-cta {
        width: 100%;
    }

    .share-actions {
        flex-direction: column;
    }

    .share-button {
        text-align: center;
    }

    .mobile-fixed-cta {
        display: block;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 14px;
        z-index: 200;
        padding: 14px 20px;
        background: linear-gradient(180deg, #064b8f 0%, #003366 100%);
        color: #fff;
        text-align: center;
        text-decoration: none;
        font-weight: bold;
        border-radius: 10px;
        box-shadow: 0 14px 34px rgba(0, 51, 102, 0.3);
        transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
    }

    .mobile-fixed-cta:hover,
    .mobile-fixed-cta:focus {
        background: linear-gradient(180deg, #0759aa 0%, #003c78 100%);
    }

    .mobile-fixed-cta.is-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(12px);
    }
}

@media (max-width: 900px) {
    .hero-brand-symbol {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: min(58vw, 300px);
        margin: 24px auto 0;
        animation: none;
        opacity: 0.82;
    }
}

@media (min-width: 768px) {
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .form-field input {
        margin-bottom: 20px;
    }
}
