/* 1. GLOBÁLNÍ PROMĚNNÉ (Tvá identita) */
:root {
    --bg-color: #080808;
    --text-color: #f5f5f7;
    --accent-color: #007aff; 
    --accent-purple: #af52de;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 2. ZÁKLADNÍ STYLING A POZADÍ */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 122, 255, 0.08) 0px, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(175, 82, 222, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* Efekt šumu pro texturu */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.02;
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 550px;
    padding: 40px 0;
}

/* 3. KARTA KALKULAČKY */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.03em;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    opacity: 0.6;
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* 4. TEXTOVÉ POLE (Textarea) */
textarea {
    display: block;
    width: 100%;
    height: 140px;
    box-sizing: border-box;
    margin: 0 auto 25px auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    padding: 18px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

textarea:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
}

/* 5. TLAČÍTKO */
.AboutMeButton {
    background-color: #f5f5f7;
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.AboutMeButton:hover {
    transform: translateY(-2px);
    background-color: #fff;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.AboutMeButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 6. VÝSLEDEK ANALÝZY (Moderní report) */
.result-box {
    margin-top: 35px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: left;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.res-section { margin-bottom: 25px; }

.tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.tag.accent { color: var(--accent-purple); }

.big-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    margin: 5px 0;
    letter-spacing: -0.04em;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.agency-box {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 122, 255, 0.06);
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
    font-size: 0.95rem;
    line-height: 1.5;
    color: #d1e5ff;
}

.hidden { display: none; }

#loading {
    margin-top: 20px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* SCROLLBAR */
textarea::-webkit-scrollbar { width: 6px; }
textarea::-webkit-scrollbar-thumb { 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 10px; 
}

.res-list {
    list-style: none; /* Odstraníme defaultní černé tečky */
    padding: 0;
    margin: 10px 0;
}

.res-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Vlastní stylová odrážka v tvé modré barvě */
.res-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Styl pro skupinu odeslání (Desktop - vedle sebe) */
.lead-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.lead-input-group input {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    outline: none;
}

/* Tato část zajistí, že na mobilu bude tlačítko pod políčkem */
@media (max-width: 480px) {
    .lead-input-group {
        flex-direction: column; /* Tlačítko skočí pod políčko */
    }

    #submit-lead {
        width: 100% !important;
        padding: 14px !important; /* Na mobilu se lépe kliká na větší tlačítko */
    }
}