/* Obecné styly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TT Commons Pro', Arial, sans-serif;
    background-color: #0a0a1a;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Canvas pro animaci */
#constellation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #16213e 100%);
}

.page {
    display: none;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.page.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Úvodní stránka */
#landing-page {
    padding: 20px;
    position: relative;
}

.landing-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        url('images/background.jpg') no-repeat center center,
        linear-gradient(90deg, 
            rgba(10, 10, 26, 0.95) 0%,
            rgba(10, 10, 26, 0.8) 10%,
            rgba(10, 10, 26, 0.6) 20%,
            rgba(10, 10, 26, 0.3) 30%,
            rgba(10, 10, 26, 0.1) 40%,
            transparent 50%,
            transparent 100%);
    background-size: cover, auto;
    background-blend-mode: overlay;
}

.landing-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    animation: fadeInLeft 1s ease;
    margin-left: 10%;
}

.description-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(13, 43, 75, 0.15);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(25, 118, 210, 0.1);
    backdrop-filter: blur(10px);
}

.description-panel h1 {
    color: #0d2b4b;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
}

.description-panel p {
    color: #5a6c7d;
    margin-bottom: 0;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.7;
}

.start-btn {
    max-width: 450px;
    margin-top: 0;
    background: white !important;
    color: #333333 !important;
    border: 2px solid #1976d2 !important;
    animation: pulseOutline 2s infinite;
}

.start-btn:hover {
    background: #f8fafc !important;
    border-color: #0d2b4b !important;
    color: #0d2b4b !important;
}

/* Testovací stránka */
#quiz-page {
    background: transparent;
    padding: 20px;
    overflow-y: auto;
    height: 100vh;
    -webkit-overflow-scrolling: touch;
}

.quiz-container {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(13, 43, 75, 0.15);
    padding: 40px;
    animation: fadeInUp 0.8s ease;
    border: 1px solid rgba(25, 118, 210, 0.1);
    margin: auto;
    backdrop-filter: blur(10px);
}

.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    height: 12px;
    background: #f0f4f8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1976d2, #0d2b4b);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 6px;
}

.progress-text {
    text-align: right;
    font-size: 0.9rem;
    color: #5a6c7d;
    font-weight: 500;
}

.question-container h2 {
    color: #0d2b4b;
    margin-bottom: 30px;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.answers-container {
    margin-bottom: 40px;
}

.answer-option {
    display: block;
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #334155;
    font-weight: 500;
}

.answer-option:hover {
    background: #f1f5f9;
    border-color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.15);
}

.answer-option.selected {
    background: linear-gradient(135deg, #1976d2, #0d2b4b);
    color: white;
    border-color: #1976d2;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.25);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

/* Registrační stránka */
#registration-page {
    background: transparent;
    padding: 20px;
    overflow-y: auto;
    height: 100vh;
    -webkit-overflow-scrolling: touch;
}

.registration-container {
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(13, 43, 75, 0.15);
    padding: 50px;
    animation: fadeInUp 0.8s ease;
    border: 1px solid rgba(25, 118, 210, 0.1);
    text-align: center;
    margin: auto;
    backdrop-filter: blur(10px);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1976d2, #0d2b4b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    animation: pulse 2s infinite;
}

.registration-container h2 {
    color: #0d2b4b;
    margin-bottom: 35px;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.4;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #0d2b4b;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #334155;
    font-family: 'TT Commons Pro', Arial, sans-serif;
}

.form-group input:focus {
    border-color: #1976d2;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Styly pro pole telefonu s prefixem - OPRAVENO */
.phone-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-prefix {
    position: absolute;
    left: 15px;
    color: #5a6c7d;
    font-weight: 500;
    z-index: 2;
    pointer-events: none;
}

#phone {
    padding-left: 55px;
    letter-spacing: 1px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    text-align: left;
    gap: 12px;
}

.checkbox-group input {
    margin-top: 3px;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    color: #5a6c7d;
    line-height: 1.5;
    flex: 1;
}

.policy-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #0d2b4b;
    text-decoration: underline;
}

/* Tlačítka */
.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1976d2, #0d2b4b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    text-decoration: none;
    font-family: 'TT Commons Pro', Arial, sans-serif;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

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

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    background: white;
    color: #1976d2;
    border: 2px solid #1976d2;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'TT Commons Pro', Arial, sans-serif;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #0d2b4b;
    color: #0d2b4b;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animace */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(25, 118, 210, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0);
    }
}

@keyframes pulseOutline {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(25, 118, 210, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 118, 210, 0);
    }
}

/* Responzivita */
@media (max-width: 768px) {
    .landing-content {
        align-items: center;
        margin-left: 0;
    }
    
    .description-panel {
        padding: 30px;
        max-width: 100%;
    }
    
    .quiz-container, .registration-container {
        padding: 25px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .question-container h2, .registration-container h2 {
        font-size: 1.4rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .description-panel {
        padding: 25px;
    }
    
    .description-panel h1 {
        font-size: 1.8rem;
    }
    
    .quiz-container, .registration-container {
        padding: 20px;
    }
    
    .question-container h2, .registration-container h2 {
        font-size: 1.2rem;
    }
    
    .answer-option {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}