/* Liverpool Jet Lag Questionnaire (LJLQ) Survey Styles */

/* Survey Layout System - Cohesive Design */
.survey-layout-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Comment Section Styling */
.comment-container {
    margin-top: 20px;
}

.comment-container label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.comment-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s ease;
}

.comment-container textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-container textarea:disabled {
    background-color: #f8f9fa;
    color: #6b7280;
    cursor: not-allowed;
}

.comment-counter {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    text-align: right;
}

.comment-note {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.comment-note small {
    color: #6b7280;
}

/* Flight Landing Time Validation Styles */
.context-row input[type="datetime-local"].valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.context-row input[type="datetime-local"].invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.context-row input[type="datetime-local"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}


.hero-simple h1 {
    font-size: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.5;
}

.research-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Survey Intro - Left-aligned within centered container */
.survey-intro {
    padding: 40px 0;
    background: #f8f9fa;
}

.survey-intro .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.intro-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
}

.intro-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 24px;
}

.research-goals {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.research-goals h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
}

.research-goals ul {
    list-style: none;
    padding: 0;
}

.research-goals li {
    padding: 8px 0;
    color: #666;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.research-goals li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Survey Preview - Centered */
.survey-preview {
    padding: 40px 0;
    background: white;
}

.survey-preview .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Survey Content - Centered with consistent width */
#surveyContent {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Survey Container - Remove conflicting styles */
.survey-container {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Survey Validation Section */
.survey-validation {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.validation-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
    text-align: center;
}

.validation-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.code-input-section {
    margin-bottom: 30px;
}

.code-input-section label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.code-input-section input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    transition: border-color 0.3s ease;
    margin-bottom: 15px;
}

.code-input-section input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.code-input-section input::placeholder {
    color: #999;
    font-family: 'Courier New', monospace;
}

.code-input-section button {
    width: 100%;
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.code-input-section button:hover {
    background: #45a049;
}

.code-help {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.code-help h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.code-help ol {
    color: #666;
    line-height: 1.6;
    padding-left: 20px;
}

.code-help li {
    margin-bottom: 8px;
}

.validation-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.validation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.validation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Survey Sections - Consistent styling */
.survey-section {
    margin-bottom: 32px;
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.survey-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

.survey-section p {
    color: #666;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.6;
}

/* Progress Bar - Centered */
.survey-progress {
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Preview Content - Consistent styling */
.preview-content h2 {
    color: #333;
    margin-bottom: 16px;
    font-size: 24px;
    text-align: center;
    font-weight: 600;
}

.preview-content p {
    color: #666;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.preview-notice {
    margin-bottom: 24px;
}

.notice-box {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.notice-box h4 {
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.notice-box p {
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    text-align: left;
}

.notice-box ol {
    color: #666;
    line-height: 1.5;
    padding-left: 18px;
}

.notice-box li {
    margin-bottom: 6px;
}

/* Form Elements */
form {
    margin: 0;
}

.symptom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

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

.symptom-row:hover {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 12px 8px;
    margin: 0 -8px;
}

.symptom-row label {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.symptom-row select {
    width: 120px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.symptom-row select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.symptom-row select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Disabled form elements */
.symptom-row select:disabled,
.demographic-row select:disabled,
.context-row select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

/* Disabled submit button */
.btn.disabled {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.btn.disabled:hover {
    background-color: #ccc !important;
}

/* Context Rows */
.context-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.context-row:last-child {
    border-bottom: none;
}

.context-row label {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.context-row select {
    width: 120px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.context-row select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Demographic Rows */
.demographic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.demographic-row:last-child {
    border-bottom: none;
}

.demographic-row label {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.demographic-row select {
    width: 120px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.demographic-row select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Navigation */
.section-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-1px);
}

/* Survey Completion */
.survey-complete {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.survey-complete h2 {
    color: #28a745;
    margin-bottom: 20px;
}

.survey-complete p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .survey-container {
        padding: 15px;
        margin: 10px;
    }
    
    .survey-section {
        padding: 20px;
    }
    
    .symptom-row,
    .context-row,
    .demographic-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .symptom-row label,
    .context-row label,
    .demographic-row label {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .symptom-row select,
    .context-row select,
    .demographic-row select {
        min-width: auto;
        width: 100%;
    }
    
    .section-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Loading States */
.survey-section.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Error States */
.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
}

/* Success States */
.success-message {
    color: #4CAF50;
    font-size: 14px;
    margin-top: 5px;
} 

.survey-main-column {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 0 48px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.survey-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px 28px;
  margin: 0 auto;
  width: 100%;
}

.survey-main-column > .survey-card:first-child {
  margin-top: 40px;
}

@media (max-width: 700px) {
  .survey-main-column {
    max-width: 100%;
    padding: 16px 0 24px 0;
    gap: 20px;
  }
  .survey-card {
    padding: 18px 6vw;
  }
} 