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

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

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    background: white;
    padding: 20px 30px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    color: #667eea;
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.login-box, .questionnaire-box, .results-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.questionnaire-box, .results-box {
    border-radius: 0 0 10px 10px;
    margin-top: 0;
}

h1 {
    color: #333;
    margin-bottom: 10px;
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 22px;
}

h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

input.error,
select.error,
textarea.error {
    border-color: #e74c3c;
}

textarea {
    resize: vertical;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-small {
    padding: 6px 15px;
    font-size: 13px;
}

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

.alert-warning {
    background: #ffa;
    color: #a80;
    border-left: 4px solid #a80;
}

.demo-credentials {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    border-left: 4px solid #667eea;
}

.demo-credentials code {
    background: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #667eea;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.step {
    animation: fadeIn 0.3s ease;
}

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

.conditional {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 3px solid #667eea;
}

.review-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-grid {
    display: grid;
    gap: 20px;
}

.review-section-box {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.review-section-box h4 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 16px;
}

.review-section-box p {
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.security-note {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #2196f3;
    margin-bottom: 25px;
    font-size: 14px;
    color: #1565c0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

.submissions-list {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.submission-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #667eea;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.submission-header h3 {
    color: #667eea;
    margin: 0;
}

.submission-date {
    color: #999;
    font-size: 13px;
}

.submission-content h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.response-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
}

.response-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.response-table tr:last-child {
    border-bottom: none;
}

.response-table td {
    padding: 12px 15px;
    text-align: left;
}

.field-name {
    font-weight: 600;
    color: #667eea;
    width: 40%;
    background: #f8f9fa;
}

.field-value {
    color: #333;
}

.security-info {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
}

.security-info h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.security-info ul {
    list-style: none;
    padding-left: 0;
}

.security-info li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: #555;
}

.security-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
    font-size: 18px;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-box, .questionnaire-box, .results-box {
        padding: 25px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .submission-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .response-table td {
        display: block;
        width: 100%;
    }

    .field-name {
        background: #667eea;
        color: white;
        font-weight: 600;
    }
}