/* ============================================
   Prosper AI – Czech Theme
   Palette: #D7141A (Czech Red), #11457E (Czech Blue), #FFFFFF
   Font: Syne (headings) + DM Sans (body)
   ============================================ */

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

:root {
    --red:     #D7141A;
    --red-dk:  #a50f14;
    --blue:    #11457E;
    --blue-lt: #1a5fa0;
    --white:   #ffffff;
    --off:     #f4f5f7;
    --dark:    #0b0e14;
    --glass:   rgba(255,255,255,0.05);
    --border:  rgba(255,255,255,0.1);
    --text:    rgba(255,255,255,0.75);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: var(--dark);
    color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ---- Background ---- */
.bg-layer {
    position: fixed;
    inset: 0;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}
.bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(11,14,20,0.78) 0%,
        rgba(17,69,126,0.25) 50%,
        rgba(11,14,20,0.72) 100%);
}

/* Czech diagonal stripe decoration */
.diagonal-stripe {
    position: fixed;
    top: 0;
    left: -10%;
    width: 45%;
    height: 100vh;
    background: linear-gradient(to bottom right, rgba(215,20,26,0.06), transparent 60%);
    pointer-events: none;
    z-index: 0;
    clip-path: polygon(0 0, 60% 0, 100% 100%, 0% 100%);
}

/* topbar removed */

/* ---- Hero strip ---- */
.page-wrap {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.hero-strip {
    padding: 56px 0 44px;
    max-width: 620px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(215,20,26,0.1);
    border: 1px solid rgba(215,20,26,0.25);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 22px;
}
.hero-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
    0%,100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.hero-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(38px, 5vw, 62px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--white);
    margin-bottom: 18px;
}
.accent { color: var(--red); }

.hero-sub {
    font-size: 17px;
    color: var(--text);
    line-height: 1.7;
    max-width: 500px;
}

/* ---- Main grid ---- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
}

/* ---- Form card ---- */
.form-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.deadline-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    background: rgba(17,69,126,0.2);
    border: 1px solid rgba(17,69,126,0.35);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
}
.deadline-bar svg { color: #5b9bd5; flex-shrink: 0; }
.deadline-bar strong { color: var(--white); }

.form-image-wrap {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.08);
}
.form-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.form-hint {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
    padding: 13px 18px;
    background: linear-gradient(90deg, rgba(215,20,26,0.15) 0%, rgba(215,20,26,0.05) 100%);
    border-left: 3px solid var(--red);
    border-radius: 0 10px 10px 0;
}
.form-hint strong { color: var(--white); }

/* Form fields */
.leadform {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

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

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

.field label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.field input {
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--white);
    transition: all 0.2s ease;
}
.field input::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus {
    outline: none;
    border-color: var(--blue-lt);
    background: rgba(17,69,126,0.12);
    box-shadow: 0 0 0 3px rgba(17,69,126,0.2);
}
.field input.error {
    border-color: var(--red);
    background: rgba(215,20,26,0.08);
}

.field-error {
    font-size: 12px;
    color: #f87171;
    min-height: 16px;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.02em;
    color: var(--white);
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dk) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}
.cta-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.12), transparent);
    pointer-events: none;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(215,20,26,0.38);
    background: linear-gradient(135deg, #e81b22 0%, var(--red-dk) 100%);
}
.cta-btn:active {
    transform: translateY(0);
}
.cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ssl-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-top: 4px;
}

.doc-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ---- Info panel ---- */
.info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

/* Flag block */
.panel-block {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.flag-block {
    display: flex;
    position: relative;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-height: 100px;
}

.flag-stripe {
    width: 8px;
    flex-shrink: 0;
}
.flag-stripe.red   { background: var(--red); }
.flag-stripe.white { background: rgba(255,255,255,0.9); }
.flag-stripe.blue  { background: var(--blue); }

.flag-content {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.panel-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red);
}

.panel-title {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

/* Stats */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: border-color 0.2s;
}
.stat-item:hover { border-color: rgba(215,20,26,0.3); }

.stat-value {
    font-family: 'Manrope', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1;
}
.stat-value em {
    font-style: normal;
    font-size: 18px;
    color: var(--red);
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
}

/* Features */
.features-list {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feat {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.feat:last-child { border-bottom: none; padding-bottom: 0; }
.feat:first-child { padding-top: 0; }

.feat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    margin-top: 6px;
    flex-shrink: 0;
}

.feat-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.feat-body strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
}
.feat-body span {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.5;
}

/* Risk note */
.risk-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(17,69,126,0.1);
    border: 1px solid rgba(17,69,126,0.2);
    border-radius: 14px;
}
.risk-note svg { color: #5b9bd5; flex-shrink: 0; margin-top: 2px; }
.risk-note p {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px;
    color: rgba(255,255,255,0.25);
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ---- Utilities ---- */
.hide { display: none; }

.loader {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* intl-tel-input */
.iti { width: 100%; }
.iti__country-list {
    background: #131720;
    border-color: rgba(255,255,255,0.1);
    color: #fff;
}
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(17,69,126,0.2); }
.iti__divider { border-bottom-color: rgba(255,255,255,0.08); }
.iti__dial-code { color: rgba(255,255,255,0.5); }
.iti__selected-flag { background: transparent !important; }
.iti__selected-dial-code { color: rgba(255,255,255,0.8); }
.iti__arrow { border-top-color: rgba(255,255,255,0.5); }
.iti__arrow--up { border-bottom-color: rgba(255,255,255,0.5); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
        max-width: 620px;
        margin: 0 auto;
    }
    .info-panel {
        position: static;
    }
    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 700px) {
    .page-wrap { padding: 0 16px 50px; }
    .topbar-inner { padding: 12px 16px; }
    .hero-strip { padding: 36px 0 28px; }
    .form-card { padding: 24px 18px; border-radius: 18px; }
    .field-row { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 32px; }
    .topbar-badge { display: none; }
}