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

html {
    scroll-behavior: smooth;
}

:root {
    --navy: #152e52;
    --navy-light: #203655;
    --navy-dark: #0e2240;
    --white: #ffffff;
    --gray-50: #f8f9fb;
    --gray-100: #eef1f5;
    --gray-200: #dce1e9;
    --gray-400: #8d97a8;
    --gray-600: #4a5568;
    --gray-800: #1e2a3a;
    --accent: #c0392b;
    --accent-light: #e74c3c;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== GOVERNMENT HEADER ===== */
.gov-header {
    background: linear-gradient(200deg, var(--navy), var(--navy-light) 80%);
    color: var(--white);
}

.header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gov-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.brand-name {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--white);
}

.brand-sub {
    font-size: 10.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.6);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #2ecc71;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Stripe under header — Polish flag colors */
.gov-stripe {
    height: 4px;
    background: linear-gradient(90deg, var(--white) 50%, var(--accent) 50%);
}

/* ===== PAGE ===== */
.page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    margin: 28px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(21, 46, 82, 0.88), rgba(32, 54, 85, 0.92) 80%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 52px 48px;
    max-width: 680px;
}

.hero-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--white);
    padding: 6px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-banner h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 18px;
}

.highlight {
    color: var(--white);
    border-bottom: 3px solid var(--accent);
    padding-bottom: 2px;
}

.hero-banner p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 560px;
}

/* ===== MAIN GRID ===== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 36px;
    padding: 8px 0 60px;
    align-items: start;
}

/* ===== INFO COLUMN ===== */
.info-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Official Notice */
.official-notice {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.notice-bar {
    width: 5px;
    background: var(--navy);
    flex-shrink: 0;
}

.notice-body {
    padding: 18px 22px;
}

.notice-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.notice-body p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.notice-body strong {
    color: var(--gray-800);
}

.notice-deposit {
    margin-top: 6px;
    font-size: 13px;
    color: var(--gray-400);
}

/* Platform Preview */
.platform-preview {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.platform-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Doc Banner */
.doc-banner {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    padding: 14px 20px;
    background: linear-gradient(200deg, var(--navy), var(--navy-light) 80%);
    border-radius: var(--radius-md);
    letter-spacing: 0.01em;
}

/* Key Facts */
.key-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.fact {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.fact-num {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.fact-label {
    font-size: 11px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

/* ===== FORM COLUMN ===== */
.form-col {
    position: sticky;
    top: 24px;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 24px rgba(21, 46, 82, 0.06);
}

.form-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: linear-gradient(200deg, var(--navy), var(--navy-light) 80%);
    color: var(--white);
}

.form-card-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-card-id {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

/* Form */
.leadform {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.req {
    color: var(--accent);
}

.form-field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: 'Noto Sans', sans-serif;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--gray-50);
    color: var(--gray-800);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input::placeholder {
    color: var(--gray-400);
}

.form-field input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(21, 46, 82, 0.1);
    background: var(--white);
}

.form-field input.error {
    border-color: var(--accent);
}

.field-error {
    font-size: 12px;
    color: var(--accent);
}

/* Consent */
.form-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--gray-400);
    padding: 12px 14px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-100);
}

/* Submit */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Noto Sans', sans-serif;
    color: var(--white);
    background: linear-gradient(200deg, var(--navy), var(--navy-light) 80%);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(21, 46, 82, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-footer-note {
    text-align: right;
    font-size: 11px;
    color: var(--gray-400);
}

/* ===== FOOTER ===== */
.gov-footer {
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 32px;
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
}

/* ===== LOADER ===== */
.loader {
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hide {
    display: none;
}

/* ===== INTL TEL INPUT ===== */
.iti {
    width: 100%;
}

.iti__country-list {
    background: var(--white);
    border-color: var(--gray-200);
    color: var(--gray-800);
}

.iti__country:hover,
.iti__country.iti__highlight {
    background: var(--gray-100);
}

.iti__divider {
    border-bottom-color: var(--gray-200);
}

.iti__dial-code {
    color: var(--gray-400);
}

.iti__selected-flag {
    background: transparent !important;
}

.iti__selected-dial-code {
    color: var(--gray-600);
}

.iti__arrow {
    border-top-color: var(--gray-400);
}

.iti__arrow--up {
    border-bottom-color: var(--gray-400);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .form-col {
        position: static;
    }

    .hero-banner h1 {
        font-size: 30px;
    }

    .hero-content {
        padding: 36px 32px;
    }
}

@media (max-width: 640px) {
    .page {
        padding: 0 14px;
    }

    .header-inner {
        padding: 14px 16px;
    }

    .header-status {
        font-size: 9px;
    }

    .brand-name {
        font-size: 17px;
    }

    .brand-sub {
        font-size: 9px;
    }

    .hero-banner {
        margin: 16px 0;
        min-height: 260px;
    }

    .hero-banner h1 {
        font-size: 24px;
    }

    .hero-content {
        padding: 28px 22px;
    }

    .hero-banner p {
        font-size: 13px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .key-facts {
        grid-template-columns: 1fr;
    }

    .leadform {
        padding: 22px 18px;
    }

    .form-card-top {
        padding: 14px 18px;
    }
}