/* =====================================
   styles.css - Darmgesundheit Umfrage Styles
   ===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 50%, #A5D6A7 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    line-height: 1.6;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.15);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 6px;
    background: #E0F2F1;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #66BB6A, #4CAF50);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #2E7D32;
    font-size: 14px;
}

/* Typography */
h1 {
    color: #1B5E20;
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
}

h2 {
    color: #2E7D32;
    font-size: 20px;
    margin-bottom: 20px;
}

h3 {
    color: #2E7D32;
    font-size: 18px;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    color: #558B2F;
    margin-bottom: 30px;
    font-size: 16px;
}

.sub-question {
    color: #689F38;
    font-size: 14px;
    margin-bottom: 25px;
    font-style: italic;
}

/* Question Container */
.question-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.question-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Answer Options */
.answer-option {
    background: linear-gradient(135deg, #F1F8E9, #E8F5E9);
    border: 2px solid #C5E1A5;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #33691E;
    user-select: none;
    display: flex;
    align-items: center;
}

.answer-option:hover {
    background: linear-gradient(135deg, #DCEDC8, #C5E1A5);
    border-color: #9CCC65;
    transform: translateX(5px);
}

.answer-option.selected {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    color: white;
    border-color: #43A047;
}

/* Checkbox and Radio Icons */
.checkbox-icon,
.radio-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #81C784;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.radio-icon {
    border-radius: 50%;
}

.checkbox-icon {
    border-radius: 4px;
}

.answer-option.selected .checkbox-icon,
.answer-option.selected .radio-icon {
    background: white;
    border-color: white;
}

.answer-option.selected .checkbox-icon::after {
    content: '✓';
    color: #4CAF50;
    font-weight: bold;
}

.answer-option.selected .radio-icon::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
}

/* Form Elements */
textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #C5E1A5;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    background: #F9FBE7;
    color: #33691E;
}

textarea:focus {
    outline: none;
    border-color: #9CCC65;
    background: white;
}

input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #C5E1A5;
    border-radius: 12px;
    font-size: 16px;
    background: #F9FBE7;
    color: #33691E;
    margin-bottom: 10px;
}

input[type="email"]:focus {
    outline: none;
    border-color: #9CCC65;
    background: white;
}

/* Buttons */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #66BB6A, #4CAF50);
    color: white;
    flex: 1;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #558B2F;
    border: 2px solid #C5E1A5;
}

.btn-secondary:hover:not(:disabled) {
    background: #F1F8E9;
    border-color: #9CCC65;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Special Sections */
.welcome-screen {
    text-align: center;
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.time-info {
    color: #689F38;
    font-size: 14px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.thank-you-screen {
    text-align: center;
}

.thank-you-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.contact-info {
    background: linear-gradient(135deg, #F1F8E9, #E8F5E9);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 2px solid #C5E1A5;
}

.pdf-section {
    background: linear-gradient(135deg, #FFF9C4, #FFF59D);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 2px solid #F9A825;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 4px;
    cursor: pointer;
}

/* Messages */
.error-message {
    color: #D32F2F;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #388E3C;
    font-size: 14px;
    margin-top: 10px;
    padding: 15px;
    background: #E8F5E9;
    border-radius: 8px;
    display: none;
}

.success-message.show {
    display: block;
}

/* WhatsApp Button */
.whatsapp-button {
    display: inline-block;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* PDF Download Button Special */
.btn-download {
    background: linear-gradient(135deg, #FFB74D, #FF9800);
    width: 100%;
    font-size: 18px;
    padding: 15px;
}

.btn-download:hover:not(:disabled) {
    background: linear-gradient(135deg, #FFA726, #FB8C00);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 20px;
    }

    .button-container {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }
}