* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.language-selector select {
    padding: 8px 12px;
    border: 2px solid #667eea;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
}

.language-selector select:hover {
    background: #f5f5f5;
}

.language-selector select:focus {
    outline: none;
    border-color: #764ba2;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #667eea;
    font-size: 2em;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

.privacy-notice {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.privacy-notice h3 {
    color: #2e7d32;
    margin-bottom: 8px;
}

.privacy-notice p {
    color: #1b5e20;
    font-size: 0.95em;
}

section {
    margin-bottom: 30px;
}

h2 {
    color: #444;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
}

.info-text {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.consent {
    background: #fff3e0;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.consent label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.consent input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.verify-btn {
    width: 100%;
    padding: 12px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.verify-btn:hover {
    background: #45a049;
}

.verify-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.verification-status {
    margin-bottom: 15px;
    font-weight: 600;
}

#verificationCodeInput {
    margin-top: 15px;
}

#verificationCode {
    font-size: 1.2em;
    letter-spacing: 3px;
    text-align: center;
}

.symptom-results {
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 15px;
    display: none;
    background: white;
}

.symptom-results.active {
    display: block;
}

.symptom-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.symptom-item:hover {
    background: #f5f5f5;
}

.symptom-item:last-child {
    border-bottom: none;
}

.symptom-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.symptom-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75em;
    margin-right: 8px;
}

.symptom-description {
    color: #666;
    font-size: 0.9em;
}

.selected-symptoms {
    margin-bottom: 20px;
    min-height: 40px;
}

.selected-symptom-tag {
    display: inline-block;
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #1b5e20;
    padding: 8px 12px;
    border-radius: 20px;
    margin: 5px;
    font-size: 0.9em;
}

.selected-symptom-tag .remove-symptom {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #c62828;
}

.selected-symptom-tag .remove-symptom:hover {
    color: #b71c1c;
}

.symptom-count {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
    font-style: italic;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}

.category-group {
    padding: 8px 12px;
    background: #f9f9f9;
    font-weight: 600;
    color: #667eea;
    border-bottom: 2px solid #667eea;
}

.success-message,
.error-message {
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.success-message {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #1b5e20;
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.success-message h3,
.error-message h3 {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
}
