/* ===================================================================
   Cena Nemovitosti / styles.css (v2 / high-conversion edition)
   Paleta: krémová + žlutá zvýraznění + červená urgency + tmavě hnědá
   Fonty: Playfair Display (nadpisy), Inter (text)
   =================================================================== */

:root {
    --cream:        #FAF3E7;
    --cream-light:  #FDF9F1;
    --cream-dark:   #F5EAD3;
    --yellow:       #FACC15;
    --yellow-soft:  #FEF3C7;
    --red:          #DC2626;
    --red-dark:     #B91C1C;
    --red-soft:     #FEE2E2;
    --blue:         #2563EB;
    --blue-dark:    #1D4ED8;
    --green:        #16A34A;
    --green-dark:   #15803D;
    --green-light:  #DCFCE7;
    --text:         #1C1917;
    --text-soft:    #57534E;
    --text-mute:    #A8A29E;
    --border:       #E7E1D2;
    --border-dark:  #D6CDB7;
    --error:        #DC2626;
    --error-bg:     #FEF2F2;
    --shadow-sm:    0 1px 2px rgba(28, 25, 23, .05);
    --shadow-md:    0 4px 12px rgba(28, 25, 23, .08);
    --shadow-lg:    0 12px 32px rgba(28, 25, 23, .1);
    --radius:       16px;
    --radius-sm:    10px;
    --radius-lg:    24px;
}

/* ----------------- Reset ----------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 760px; }

/* ----------------- HERO ----------------- */
.hero {
    position: relative;
    padding: 56px 0 48px;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, #FFF6E5, transparent 70%),
        var(--cream);
    text-align: center;
    overflow: hidden;
}

/* Pozor badge */
.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--red);
    color: white;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, .25);
    animation: shake 4s ease-in-out infinite;
}
.warn-icon { font-size: 16px; }
@keyframes shake {
    0%, 90%, 100% { transform: rotate(0); }
    92%           { transform: rotate(-2deg); }
    94%           { transform: rotate(2deg); }
    96%           { transform: rotate(-2deg); }
    98%           { transform: rotate(0); }
}

/* Hero title / Playfair, jako u originálu */
.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 auto 24px;
    max-width: 880px;
}
.hero-title .hl {
    font-style: italic;
    color: var(--red);
}
.hero-title .underline-mark {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.hero-title .underline-mark::after {
    content: "";
    position: absolute;
    left: -2px; right: -2px;
    bottom: 4px;
    height: 14px;
    background: var(--yellow);
    z-index: -1;
    border-radius: 3px;
    transform: skew(-2deg);
}

.hero-lead {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-soft);
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.65;
}
.hero-lead strong { color: var(--text); }

/* Pain cards (4 typy nemovitostí s "??? Kč") */
.pain-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
    max-width: 920px;
    margin: 0 auto 24px;
}
.pain-card {
    position: relative;
    background: white;
    border: 2px solid var(--border-dark);
    border-radius: 4px;
    padding: 28px 16px 18px;
    text-align: center;
    color: var(--text-soft);
    box-shadow:
        var(--shadow-md),
        inset 0 0 0 1px rgba(255, 255, 255, .8);
    transform: rotate(-1deg);
    transition: transform .25s, box-shadow .25s;
}
.pain-card:nth-child(2) { transform: rotate(0.8deg); }
.pain-card:nth-child(3) { transform: rotate(-0.6deg); }
.pain-card:nth-child(4) { transform: rotate(1.2deg); }
.pain-card:hover {
    transform: rotate(0) scale(1.04);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}
.pain-card .tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    background: var(--yellow);
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 14px;
    letter-spacing: 0.08em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.pain-svg {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    color: var(--text-soft);
}
.pain-card .price-tag {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.pain-card .pain-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text);
    text-transform: uppercase;
}

.pain-question {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 3vw, 26px);
    font-style: italic;
    color: var(--text);
    margin: 0 0 28px;
}
.pain-question strong {
    color: var(--red);
    font-style: normal;
}

.arrow-down {
    margin: 0 auto;
    width: 60px;
    animation: bounce-arrow 2s infinite;
}
.arrow-down svg { width: 100%; height: auto; }
@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* ----------------- FORM SECTION ----------------- */
.form-section {
    padding: 64px 0 80px;
    background: var(--cream-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.form-headline {
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    margin: 0 0 36px;
    line-height: 1.3;
    /* Každý řádek na novém řádku */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.form-headline .fh-line-1,
.form-headline .fh-line-3 {
    display: block;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 700;
    line-height: 1.3;
}
.form-headline .fh-highlight {
    /* Velký, dominantní žlutý box, blok přes celou šířku na mobilu pro čitelnost */
    display: inline-block;
    background: var(--yellow);
    color: var(--text);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(28px, 7vw, 44px);
    line-height: 1.15;
    padding: 10px 22px;
    border-radius: 8px;
    letter-spacing: -0.01em;
    transform: rotate(-1.5deg);
    box-shadow:
        0 4px 0 rgba(28, 25, 23, .08),
        0 8px 20px rgba(250, 204, 21, .25);
    white-space: nowrap;
    /* Mobil: nech to padnout do volného boxu, ne přes okraj */
    max-width: 100%;
}

/* Mobile: zvýraznění zalom kdyby bylo třeba */
@media (max-width: 380px) {
    .form-headline .fh-highlight {
        font-size: 28px;
        padding: 10px 16px;
        white-space: normal;
        line-height: 1.2;
    }
}

.lead-form {
    position: relative;
    background: white;
    border: 2px dashed var(--green);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Bankovka 5000 v pozadí formuláře */
.money-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.money-bg span {
    font-family: 'Playfair Display', serif;
    font-size: clamp(80px, 18vw, 180px);
    font-weight: 900;
    color: rgba(28, 25, 23, .04);
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-12deg);
}

.form-content {
    position: relative;
    z-index: 1;
    padding: 32px;
}

/* Progress */
.progress-wrap {
    margin-bottom: 28px;
}
.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--text);
    border-radius: 0;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 10%;
    background: var(--green);
    transition: width .35s cubic-bezier(.4, 0, .2, 1);
}
.progress-label {
    margin-top: 8px;
    text-align: right;
    font-size: 12px;
    color: var(--text-mute);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Steps */
.step { display: none; animation: fadeIn .3s ease-out; }
.step.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.step-hint {
    font-size: 14px;
    color: var(--text-soft);
    margin: 0 0 20px;
}
.step-hint em { color: var(--red); font-style: normal; font-weight: 700; }

.field-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

/* Inputs */
input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    color: var(--text);
    background: white;
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
input:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
input.invalid, textarea.invalid {
    border-color: var(--error);
    background: var(--error-bg);
}
textarea { resize: vertical; min-height: 80px; }

/* Radio cards */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}
.radio-grid-compact { grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); }
.radio-list { display: flex; flex-direction: column; gap: 8px; }

.radio-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: white;
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
.radio-card:hover {
    border-color: var(--text);
    background: var(--cream-light);
}
.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.radio-card span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding-left: 28px;
}
.radio-card span::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 20px; height: 20px;
    border: 2px solid var(--border-dark);
    border-radius: 50%;
    background: white;
    transition: all .15s;
}
.radio-card span::after {
    content: "";
    position: absolute;
    left: 5px; top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px; height: 10px;
    background: white;
    border-radius: 50%;
    transition: transform .15s;
}
.radio-card input:checked ~ span {
    color: var(--green-dark);
    font-weight: 700;
}
.radio-card input:checked ~ span::before {
    background: var(--green);
    border-color: var(--green);
}
.radio-card input:checked ~ span::after {
    transform: translateY(-50%) scale(1);
}
.radio-card:has(input:checked) {
    border-color: var(--green);
    background: var(--green-light);
}

.error-msg {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--error);
    font-weight: 600;
    min-height: 18px;
}

/* Celebrate banner (step 7) */
.celebrate {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--yellow-soft), #FEF9E1);
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 2px solid var(--yellow);
}
.celebrate-icon {
    font-size: 44px;
    margin-bottom: 8px;
    animation: pop 0.6s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes pop {
    0%   { transform: scale(0); opacity: 0; }
    70%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}
.celebrate .step-title { color: var(--text); font-family: 'Playfair Display', serif; }
.celebrate .step-hint { color: var(--text-soft); margin-bottom: 0; }

/* Form nav */
.form-nav {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--blue);
    color: white;
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(37, 99, 235, .25);
}
.btn-primary:hover:not(:disabled) {
    background: var(--blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
}
.btn-success {
    background: var(--green);
    color: white;
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .3);
}
.btn-success:hover:not(:disabled) {
    background: var(--green-dark);
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--text-soft);
    padding: 14px 18px;
}
.btn-ghost:hover { color: var(--text); background: var(--cream-light); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.gdpr {
    text-align: center;
    margin: 20px 0 0;
    font-size: 12px;
    color: var(--text-mute);
    line-height: 1.5;
}
.gdpr .lock { margin-right: 4px; }

/* ----------------- URGENCY BLOCK ----------------- */
.urgency {
    background: var(--cream);
    padding: 64px 0;
}
.urgency-card {
    background: linear-gradient(135deg, var(--text) 0%, #2C2925 100%);
    color: white;
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.urgency-card::before {
    content: "";
    position: absolute;
    top: -40%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(250, 204, 21, .12), transparent 70%);
    pointer-events: none;
}
.urgency-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: inline-block;
    animation: tick 2s ease-in-out infinite;
}
@keyframes tick {
    0%, 100% { transform: rotate(0); }
    25%      { transform: rotate(-8deg); }
    75%      { transform: rotate(8deg); }
}
.urgency-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 38px);
    margin: 0 0 16px;
    color: var(--yellow);
    font-weight: 900;
}
.urgency-card p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .85);
    max-width: 560px;
    margin: 0 auto 16px;
    position: relative;
}
.urgency-card p strong {
    color: white;
    background: rgba(250, 204, 21, .2);
    padding: 1px 6px;
    border-radius: 3px;
}
.btn-urgent {
    margin-top: 16px;
    background: var(--yellow);
    color: var(--text);
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 900;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(250, 204, 21, .35);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    animation: pulse-btn 2s ease-in-out infinite;
}
@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 8px 24px rgba(250, 204, 21, .35); }
    50%      { box-shadow: 0 8px 32px rgba(250, 204, 21, .55); }
}
.btn-urgent:hover {
    background: #FBE054;
    transform: translateY(-2px);
}

/* ----------------- FOOTER ----------------- */
.footer {
    background: var(--text);
    color: rgba(255, 255, 255, .55);
    padding: 36px 0 28px;
    text-align: center;
}
.footer-disclaimer {
    font-size: 11px;
    max-width: 720px;
    margin: 0 auto 12px;
    line-height: 1.5;
}
.footer-copy {
    font-size: 13px;
    margin: 0;
    opacity: .7;
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 600px) {
    .hero { padding: 36px 0 32px; }
    .form-content { padding: 24px 18px; }
    .form-nav { flex-direction: column-reverse; align-items: stretch; }
    .form-nav .btn { width: 100%; margin-left: 0; }
    .btn-ghost { order: 1; }
    .pain-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .pain-svg { width: 56px; height: 56px; }
    .pain-card .price-tag { font-size: 18px; }
    .radio-grid { grid-template-columns: repeat(2, 1fr); }
    .urgency-card { padding: 36px 24px; }
}

@media (max-width: 380px) {
    .pain-cards { grid-template-columns: 1fr; }
}
