:root {
    --primary-color: #003366; /* Tmavě modrá */
    --accent-color: #ff6600; /* Sportovní oranžová */
    --bg-color: #f4f7f6;
    --bg-white: #ffffff;
    --text-color: #333333;
    --text-light: #555555;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    /* Změna na moderní font s pády na bezpečné systémové fonty */
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background-color: var(--bg-color); 
    color: var(--text-color); 
    line-height: 1.6; 
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 60px 20px; 
}

/* Skrytí elementů vizuálně, ale zachování pro vyhledávače a čtečky (SEO a a11y) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Pozadí sekcí pro oddělení obsahu */
.section-light { background-color: var(--bg-color); }
.section-white { background-color: var(--bg-white); }

/* Hero / Banner */
.hero {
    /*background: url('logoElipa.jpeg') no-repeat center center;*/
    background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.5)), url('logoElipa.jpeg') no-repeat center center;
    background-size: cover;
    aspect-ratio: 16 / 7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    font-weight: 700;
}
.hero h2 { 
    font-weight: 400; 
    font-size: 1.5rem;
    margin-bottom: 20px; 
}
.badge { 
    background: var(--accent-color); 
    padding: 5px 15px; 
    border-radius: 20px; 
    display: inline-block; 
    font-weight: bold; 
}

/* O Nás & Kurzy */
.about { 
    text-align: center; 
    font-size: 1.1rem; 
    color: var(--text-light);
}
.about h2 { 
    color: var(--primary-color); 
    margin-bottom: 30px; 
    font-size: 2rem;
    font-weight: 600;
}
.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Formuláře */
.forms-section { 
    background: white; 
    border-radius: 12px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.05); 
    margin-top: 20px; 
    margin-bottom: 40px;
    padding: 40px;
}
.tabs { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 40px; 
}
.tab-btn { 
    padding: 12px 25px; 
    border: none; 
    background: #eef2f5; 
    color: var(--text-light);
    cursor: pointer; 
    font-size: 1.05rem; 
    font-weight: 600;
    border-radius: 8px; 
    transition: all 0.3s ease; 
}
.tab-btn:hover {
    background: #dfe6eb;
}
.tab-btn.active { 
    background: var(--primary-color); 
    color: white; 
    box-shadow: 0 4px 10px rgba(0,51,102,0.2);
}

.form-content { 
    display: none; 
    flex-direction: column; 
    gap: 20px; 
    max-width: 650px; 
    margin: 0 auto; 
}
.form-content.active { 
    display: flex; 
}
.form-content h3 { 
    text-align: center; 
    color: var(--primary-color); 
    font-size: 1.5rem;
    margin-bottom: 10px;
}

input, textarea, select { 
    padding: 14px; 
    border: 1px solid #ced4da; 
    border-radius: 8px; 
    width: 100%; 
    font-size: 1rem; 
    transition: border-color 0.3s;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
}
.course-select { 
    margin-bottom: 10px; 
    background-color: #fff; 
    cursor: pointer; 
}
.form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
}

/* Checkboxy a Tooltipy - nová dostupná struktura (a11y) */
.checkbox-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.checkbox-label { 
    font-size: 0.95rem; 
    display: flex; 
    gap: 12px; 
    align-items: flex-start;
    cursor: pointer;
    font-weight: 500;
}
.checkbox-label input { 
    width: 18px; 
    height: 18px; 
    margin-top: 2px; 
    cursor: pointer;
}
.tooltip-details {
    margin-top: 10px;
    margin-left: 30px; /* Zarovnání textu pod text checkboxu (přeskočení čtverečku) */
    font-size: 0.85rem;
}
.tooltip-details summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    margin-bottom: 5px;
}
.tooltip-details-text {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    color: var(--text-light);
    margin-top: 5px;
}

/* Upozornění, když tlačítko není aktivní */
.form-helper-text {
    text-align: center;
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 10px;
    transition: opacity 0.3s;
}
.form-helper-text.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0;
}

.submit-btn { 
    background: var(--accent-color); 
    color: white; 
    border: none; 
    padding: 16px; 
    font-size: 1.15rem; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 700; 
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(255,102,0,0.3);
}
.submit-btn:hover:not(:disabled) { 
    background: #e65c00; 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,102,0,0.4);
}
.submit-btn:disabled { 
    background: #cccccc; 
    cursor: not-allowed; 
    box-shadow: none;
    color: #888888;
}

/* Footer */
.footer { 
    background: var(--primary-color); 
    color: white; 
    padding: 60px 0 20px; 
}
.footer h2 {
    color: var(--accent-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}.footer-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 40px; 
    padding-top: 0; 
    padding-bottom: 40px;
}
.footer a { 
    color: white; 
    text-decoration: none; 
    transition: color 0.3s;
}
.footer a:hover { 
    color: var(--accent-color); 
}
.footer-prague-static {
    display: inline-block;
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.copyright { 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 25px; 
    font-size: 0.9rem; 
    color: rgba(255,255,255,0.7);
}

/* Responzivita */
@media(max-width: 768px) { 
    .hero {
        /* Odstranění nepoměru fotky na mobilech, teď má fixní minimální výšku */
        aspect-ratio: auto;
        min-height: 50vh;
        padding: 40px 20px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero h2 {
        font-size: 1.2rem;
    }
    .footer-grid { 
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .forms-section {
        padding: 20px;
    }
}
@media(max-width: 600px) { 
    .form-grid { 
        grid-template-columns: 1fr; 
    } 
    .tabs {
        flex-direction: column;
    }
}

/* Scroll Reveal Animace */
.fade-in-section {
    opacity: 0;
    transform: translateY(200px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}