/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Application Form Styles */
.application-form-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: white;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0;
  background: white;
  color: black;
}

.form-header h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: black;
}

.form-header p {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

.application-form {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.form-section {
  padding: 25px 30px;
  border-bottom: 1px solid #e8e8e8;
  border-radius: 12px;
  margin-bottom: 20px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  margin: -25px -30px 25px -30px;
  font-size: 1.5rem;
  color: white;
  font-weight: 600;
  padding: 15px 20px;
  background-color: #30577a;
  border-radius: 12px 12px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #2c3e50;
  font-size: 0.95rem;
  font-family: 'Playfair Display', serif;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #D4DDDD;
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: #FBF7F6;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3498db;
  background-color: #FBF7F6;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.form-checkbox {
  margin-right: 8px;
  transform: scale(1.2);
}

.checkbox-label {
  font-weight: normal;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.form-actions {
  padding: 30px;
  text-align: center;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
}

.submit-button {
  background: #30577a;
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(184, 138, 47, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.submit-button:hover {
  background: #A67A2A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 138, 47, 0.4);
}

.submit-button:active {
  transform: translateY(0);
  background: #9A6F26;
}

/* Responsive Design */
@media (max-width: 768px) {
  .application-form-container {
    padding: 10px;
    max-width: 100%;
  }

  .form-header h1 {
    font-size: 2rem;
  }

  .form-section {
    padding: 20px 15px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 12px 14px;
  }
}

/* Form validation styles */
.form-input:invalid,
.form-select:invalid,
.form-textarea:invalid {
  border-color: #e74c3c;
}

.form-input:valid,
.form-select:valid,
.form-textarea:valid {
  border-color: #27ae60;
}

/* Loading state */
.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Success message styling */
.alert {
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-weight: 500;
}

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

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

/* Additional form improvements */
.form-label {
  margin-bottom: 6px;
}

.form-input:placeholder,
.form-textarea:placeholder {
  color: #6c757d;
  opacity: 0.8;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  appearance: none;
}

/* Better spacing for form sections */
.form-section h2 {
  margin-bottom: 20px;
}

/* Improved checkbox styling */
.checkbox-label {
  font-size: 0.95rem;
  padding: 5px 0;
}

/* Better focus states */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #3498db;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  transform: translateY(-1px);
}

/* Smooth transitions for all interactive elements */
.form-input,
.form-select,
.form-textarea,
.form-checkbox {
  transition: all 0.2s ease;
}

/* Dev Menu Styles */
.dev-menu {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
  border: 2px solid #3498db;
}

.dev-menu.dev-menu-collapsed {
  transform: translateX(320px);
}

.dev-menu-header {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dev-menu-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.dev-menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.dev-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.dev-menu-content {
  padding: 20px;
}

.dev-form-group {
  margin-bottom: 15px;
}

.dev-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.dev-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
  background-color: #fafbfc;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.dev-textarea:focus {
  outline: none;
  border-color: #3498db;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.dev-generate-btn {
  width: 100%;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.dev-generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.dev-generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Mobile responsiveness for dev menu */
@media (max-width: 768px) {
  .dev-menu {
    width: 300px;
    right: 10px;
    top: 10px;
  }

  .dev-menu.dev-menu-collapsed {
    transform: translateX(280px);
  }

  .dev-menu-content {
    padding: 15px;
  }
}

/* Admin Interface Styles */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.admin-header {
  background: #30577a;
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(184, 138, 47, 0.2);
}

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

.admin-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 400;
  font-family: 'Playfair Display', serif;
}

.admin-nav {
  display: flex;
  gap: 15px;
}

.admin-nav-link {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

.admin-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  min-width: 120px;
}

.stat-card h3 {
  margin: 0 0 5px 0;
  font-size: 2rem;
  font-weight: 700;
}

.stat-card p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.submissions-table-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.submissions-table {
  width: 100%;
  border-collapse: collapse;
}

.submissions-table th {
  background: #f8f9fa;
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e9ecef;
}

.submissions-table td {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.submission-row:hover {
  background: #f8f9fa;
}

.submission-id code {
  background: #e9ecef;
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  word-break: break-all;
  max-width: 200px;
  display: inline-block;
}

.submissions-table td {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 200px;
}

.submissions-table .student-email {
  word-break: break-all;
  font-family: monospace;
  font-size: 0.9rem;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.status-badge.approved {
  background: #d4edda;
  color: #155724;
}

.status-badge.rejected {
  background: #f8d7da;
  color: #721c24;
}

.report-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-badge.available {
  background: #d4edda;
  color: #155724;
}

.report-badge.pending {
  background: #fff3cd;
  color: #856404;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions form {
  display: inline-block;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.btn-view:hover {
  background: #5a6268;
}

.btn-approve {
  background: #30577a;
  color: white;
}

.btn-approve:hover {
  background: #A67A2A;
}

.btn-reject {
  background: #dc3545;
  color: white;
}

.btn-reject:hover {
  background: #c82333;
}

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

.btn-secondary:hover {
  background: #5a6268;
}

.btn-regenerate {
  background: #17a2b8;
  color: white;
}

.btn-regenerate:hover {
  background: #138496;
}

.btn-revert {
  background: #6f42c1;
  color: white;
}

.btn-revert:hover {
  background: #5a32a3;
}

.report-badge.processing {
  background: #ffc107;
  color: #212529;
}

.report-badge.failed {
  background: #dc3545;
  color: white;
}

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

.empty-state h3 {
  margin: 0 0 10px 0;
  color: #495057;
}

/* Submission Details Styles */
.submission-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.meta-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 6px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.meta-item strong {
  display: block;
  margin-bottom: 5px;
}

.meta-item code {
  word-break: break-all;
  white-space: pre-wrap;
  max-width: 100%;
  overflow: hidden;
}

.submission-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.submission-actions form {
  display: inline-block;
  margin: 0;
}

.submission-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.form-sections {
  padding: 0;
}

.form-section {
  padding: 30px;
  border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section h2 {
  color: white;
  font-size: 1.5rem;
  margin: -25px -30px 25px -30px;
  padding: 15px 20px;
  background-color: #30577a;
  border-radius: 12px 12px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 600;
}

.form-fields {
  display: grid;
  gap: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-weight: 700;
  color: #2c3e50;
  font-size: 0.95rem;
  font-family: 'Playfair Display', serif;
}

.field-group p {
  margin: 0;
  color: #495057;
  line-height: 1.6;
  background: #f8f9fa;
  padding: 12px 15px;
  border-radius: 6px;
  border-left: 3px solid #3498db;
}

.test-checkboxes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.test-taken {
  background: #d4edda;
  color: #155724;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.error-state h3 {
  margin: 0 0 10px 0;
}

/* Strategy Report Styles */
.strategy-report-section {
  background: #FBF7F6;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #D4DDDD;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.strategy-report-section h2 {
  color: white;
  font-size: 1.8rem;
  margin: -30px -30px 20px -30px;
  padding: 15px 20px;
  background-color: #30577a;
  border-radius: 12px 12px 0 0;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

.strategy-report-content {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  line-height: 1.7;
  color: #495057;
}

.strategy-report-content h1,
.strategy-report-content h2,
.strategy-report-content h3,
.strategy-report-content h4 {
  color: #2c3e50;
  margin-top: 25px;
  margin-bottom: 15px;
}

.strategy-report-content h1 {
  font-size: 1.8rem;
  border-bottom: 2px solid #17a2b8;
  padding-bottom: 10px;
}

.strategy-report-content h2 {
  font-size: 1.5rem;
  color: #17a2b8;
}

.strategy-report-content h3 {
  font-size: 1.3rem;
}

.strategy-report-content h4 {
  font-size: 1.1rem;
}

.strategy-report-content ul,
.strategy-report-content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.strategy-report-content li {
  margin: 8px 0;
}

.strategy-report-content p {
  margin: 15px 0;
}

/* Enhanced HTML markdown content styling */
.strategy-report-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.strategy-report-content h1,
.strategy-report-content h2,
.strategy-report-content h3,
.strategy-report-content h4,
.strategy-report-content h5,
.strategy-report-content h6 {
  color: white;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.strategy-report-content h1 {
  font-size: 1.8rem;
  border-bottom: 2px solid #17a2b8;
  padding-bottom: 10px;
}

.strategy-report-content h2 {
  font-size: 1.5rem;
}

.strategy-report-content h3 {
  font-size: 1.3rem;
}

.strategy-report-content h4 {
  font-size: 1.1rem;
}

.strategy-report-content h5,
.strategy-report-content h6 {
  font-size: 1rem;
}

.strategy-report-content p {
  margin: 15px 0;
  line-height: 1.7;
  color: #495057;
}

.strategy-report-content ul,
.strategy-report-content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.strategy-report-content li {
  margin: 8px 0;
  line-height: 1.6;
}

.strategy-report-content strong {
  font-weight: 600;
  color: black;
}

.strategy-report-content em {
  font-style: italic;
  color: #17a2b8;
}

.strategy-report-content code {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: 0.9em;
  color: #e83e8c;
}

.strategy-report-content pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 15px;
  overflow-x: auto;
  margin: 15px 0;
}

.strategy-report-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #495057;
  font-size: 0.9em;
}

.strategy-report-content blockquote {
  border-left: 4px solid #17a2b8;
  background: #f8f9fa;
  margin: 20px 0;
  padding: 15px 20px;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #6c757d;
}

.strategy-report-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.strategy-report-content th,
.strategy-report-content td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e9ecef;
}

.strategy-report-content th {
  background: #1d2836;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.strategy-report-content tr:nth-child(even) {
  background: #f8f9fa;
}

.strategy-report-content tr:hover {
  background: #e9ecef;
}

.strategy-report-content a {
  color: #17a2b8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.strategy-report-content a:hover {
  color: #17a2b8;
  border-bottom-color: #17a2b8;
  opacity: 0.8;
}

.strategy-report-pending {
  background: #fff3cd;
  color: #856404;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #ffeaa7;
}

.strategy-report-pending p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.application-data-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.application-data-section h2 {
  background: #30577a;
  color: white;
  font-size: 1.8rem;
  margin: 0;
  padding: 20px 30px;
  border-bottom: none;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .admin-container {
    padding: 10px;
  }

  .admin-header {
    padding: 20px;
  }

  .admin-header h1 {
    font-size: 2rem;
  }

  .admin-stats {
    justify-content: center;
  }

  .submissions-table {
    font-size: 0.9rem;
  }

  .submissions-table th,
  .submissions-table td {
    padding: 10px 8px;
  }

  .actions {
    flex-direction: column;
  }

  .submission-actions {
    flex-direction: column;
  }

  .submission-meta {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 20px;
  }
}

/* Field Help Button and Popup System */
.label-with-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
}

.label-with-help .form-label {
  margin-bottom: 0;
  flex: 1;
}

.help-button-click {
  position: relative;
  background: linear-gradient(135deg, #30577a 0%, #96721F 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(184, 138, 47, 0.2);
  flex-shrink: 0;
  z-index: 1;
}

.help-button-click:hover {
  background: linear-gradient(135deg, #96721F 0%, #30577a 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(184, 138, 47, 0.3);
}

.help-button-click:active {
  transform: translateY(0);
}

.help-button-click.help-active {
  background: linear-gradient(135deg, #96721F 0%, #30577a 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(184, 138, 47, 0.4);
}

/* Help Popup Container - Inline Expandable */
.help-popup {
  display: none;
  position: relative;
  background: linear-gradient(135deg, #fdfbf7 0%, #ffffff 100%);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  border: 2px solid #30577a;
  margin-top: 8px;
  margin-bottom: 15px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.help-button-click.help-active .help-popup {
  padding: 25px 60px;
}


/* Help Popup Content Styling */
.help-popup h4 {
  color: #30577a;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 10px 0;
}

.help-popup p {
  margin: 0 0 10px 0;
  color: #2c3e50;
  line-height: 1.6;
  font-size: 0.95rem;
}

.help-popup p:last-child {
  margin-bottom: 0;
}

.help-popup strong {
  color: #2c3e50;
  font-weight: 600;
}

.help-popup em {
  color: #30577a;
  font-style: italic;
}

.help-popup ul {
  margin: 8px 0 10px 0;
  padding-left: 35px;
  list-style-type: disc;
}

.help-popup li {
  margin: 6px 0;
  color: #495057;
  line-height: 1.5;
}

/* Scrollbar styling for help popup */
.help-popup::-webkit-scrollbar {
  width: 8px;
}

.help-popup::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.help-popup::-webkit-scrollbar-thumb {
  background: #30577a;
  border-radius: 4px;
}

.help-popup::-webkit-scrollbar-thumb:hover {
  background: #96721F;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .label-with-help {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .help-button-click {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .help-popup {
    width: 100%;
    max-height: none;
  }
}

/* Final Encouragement Section */
.final-encouragement {
  margin: 50px 0 30px 0;
  padding: 0;
  animation: fadeInUp 0.8s ease-out;
}

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

.encouragement-content {
  background: linear-gradient(135deg, #f8f6f1 0%, #ffffff 100%);
  border: 2px solid #30577a;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 24px rgba(184, 138, 47, 0.12);
  position: relative;
  overflow: hidden;
}

.encouragement-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #30577a 0%, #96721F 50%, #30577a 100%);
}

.encouragement-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 20px 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.encouragement-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin: 0 0 25px 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.encouragement-text em {
  font-style: italic;
  color: #30577a;
  font-weight: 500;
}

.encouragement-quote {
  background: white;
  border-left: 4px solid #30577a;
  padding: 20px 30px;
  margin: 25px 0 0 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.encouragement-quote p {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #2c2c2c;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.encouragement-quote cite {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  font-style: normal;
  color: #30577a;
  font-weight: 600;
  display: block;
  text-align: right;
}

/* Mobile Responsiveness for Final Encouragement */
@media (max-width: 768px) {
  .encouragement-content {
    padding: 30px 20px;
  }

  .encouragement-title {
    font-size: 1.5rem;
  }

  .encouragement-text {
    font-size: 1rem;
  }

  .encouragement-quote p {
    font-size: 1.1rem;
  }

  .encouragement-quote cite {
    font-size: 0.9rem;
  }
}

/* AI Legal Disclaimer */
.ai-disclaimer {
  max-width: 900px;
  margin: 40px auto 20px auto;
  padding: 0 20px;
}

.disclaimer-content {
  background: #f8f9fa;
  border-left: 4px solid #6c757d;
  border-radius: 6px;
  padding: 20px 25px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.disclaimer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.disclaimer-text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #495057;
  text-align: left;
}

/* Mobile Responsiveness for Disclaimer */
@media (max-width: 768px) {
  .ai-disclaimer {
    margin: 30px auto 15px auto;
    padding: 0 15px;
  }

  .disclaimer-content {
    padding: 15px 18px;
    gap: 12px;
  }

  .disclaimer-icon {
    font-size: 1.3rem;
  }

  .disclaimer-text {
    font-size: 0.8rem;
  }
}
