/* Reset and base styles */
* {
  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-color: #f8f9fa;
  font-size: 16px; /* Prevent zoom on iOS */
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth; /* Smooth scrolling for mobile */
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px; /* Mobile-first padding */
}

/* Header styles - Mobile-first */
.header {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 1.5rem 0;
  text-align: center;
}

.header h1 {
  font-size: 1.75rem; /* Mobile-first smaller size */
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.header p {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* Category Navigation - Mobile-optimized */
.category-nav {
  background: #34495e;
  padding: 1rem 0;
  border-bottom: 1px solid #2c3e50;
  overflow-x: auto; /* Allow horizontal scroll on mobile */
  -webkit-overflow-scrolling: touch;
}

.category-nav strong {
  color: #ecf0f1;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: block;
}

.category-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap; /* Single row on mobile */
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-bottom: 0.5rem; /* Space for scrollbar */
}

.category-links li a {
  background: #3498db;
  color: white;
  padding: 0.75rem 1.25rem; /* Larger touch targets */
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  display: block;
  white-space: nowrap; /* Prevent text wrapping */
  min-height: 44px; /* iOS minimum touch target */
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.category-links li a:hover,
.category-links li a:focus {
  background: #2980b9;
}

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 1;
}

/* Main content - Mobile-first */
.main {
  padding: 1.5rem 0;
  min-height: calc(100vh - 180px);
}

/* Questions grid - Mobile-optimized */
.questions-grid {
  display: grid;
  gap: 1.5rem; /* Smaller gaps on mobile */
}

.category-section {
  background: white;
  border-radius: 8px; /* Smaller radius for mobile */
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-section:hover {
  transform: translateY(-1px); /* Subtle effect on mobile */
  box-shadow: 0 3px 15px rgba(0,0,0,0.15);
}

.category-section h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  border-bottom: 3px solid #3498db;
  padding-bottom: 0.5rem;
}

.questions-list {
  list-style: none;
}

.questions-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
}

.questions-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
  font-size: 1.1rem;
}

.questions-list a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  padding: 0.75rem 0; /* Larger touch targets */
  line-height: 1.5;
  font-size: 1rem;
  min-height: 44px; /* iOS minimum touch target */
  display: flex;
  align-items: center;
}

.questions-list a:hover,
.questions-list a:focus {
  color: #3498db;
  background-color: rgba(52, 152, 219, 0.05);
  border-radius: 4px;
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Q&A Article styles - Mobile-first */
.qa-article {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 0 auto;
}

.qa-header {
  margin-bottom: 1.5rem;
}

.category-badge {
  display: inline-block;
  background: #3498db;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.qa-article h1 {
  color: #2c3e50;
  font-size: 1.5rem; /* Mobile-first size */
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.answer-section {
  margin-bottom: 2rem;
}

.quick-answer {
  background: #e8f4fd;
  border-left: 4px solid #3498db;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 8px 8px 0;
}

.quick-answer h2 {
  color: #2c3e50;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.quick-answer p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
}

.detailed-explanation h2 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.explainer-content {
  font-size: 1.05rem;
  line-height: 1.7;
}

.explainer-content p {
  margin-bottom: 1rem;
}

.qa-footer {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  text-align: center;
  color: #666;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer p {
  opacity: 0.8;
}

/* Category page styles */
.site-header {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  color: white;
  padding: 2rem 0;
}

.site-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.category-description {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.category-questions {
  padding: 2rem 0;
}

.site-footer {
  background: #2c3e50;
  color: white;
  padding: 1.5rem 0;
  text-align: center;
  margin-top: 3rem;
}

.site-footer p {
  opacity: 0.8;
}

/* Search functionality styles */
.search-container {
  background: #ecf0f1;
  padding: 1.5rem 0;
  border-bottom: 1px solid #ddd;
}

.search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

.search-input {
  width: 100%;
  padding: 14px 44px 14px 16px; /* Larger touch targets */
  font-size: 16px; /* Prevents zoom on iOS */
  border: 2px solid #3498db;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  -webkit-appearance: none; /* Remove iOS styling */
}

.search-input:focus {
  border-color: #2980b9;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-clear {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  color: #7f8c8d;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.search-clear:hover {
  background-color: #ecf0f1;
  color: #2c3e50;
}

.search-results {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 20px;
}

.search-results-header {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.search-results-count {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.search-results-list {
  display: grid;
  gap: 1rem;
}

.search-result-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.search-result-link {
  display: block;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.search-result-question {
  font-weight: 600;
  font-size: 1.1rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.search-result-question mark {
  background-color: #f1c40f;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 700;
}

.search-result-category {
  color: #3498db;
  font-size: 0.9rem;
  font-weight: 500;
}

.search-no-results {
  text-align: center;
  padding: 3rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-no-results p {
  margin-bottom: 1rem;
  color: #7f8c8d;
}

.search-suggestions {
  font-size: 0.9rem;
  color: #95a5a6;
}

/* Mobile-first responsive design */

/* Small mobile improvements (320px+) */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .qa-article {
    padding: 1rem;
  }
  
  .category-section {
    padding: 1rem;
  }
  
  .category-links {
    gap: 0.5rem;
  }
  
  .category-links li a {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* Tablet and larger mobile (768px+) */
@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
  
  .header {
    padding: 2rem 0;
  }
  
  .header h1 {
    font-size: 2.25rem;
  }
  
  .header p {
    font-size: 1.1rem;
  }
  
  .main {
    padding: 2.5rem 0;
  }
  
  .questions-grid {
    gap: 2rem;
  }
  
  .category-section {
    padding: 1.75rem;
  }
  
  .qa-article {
    padding: 2rem;
  }
  
  .qa-article h1 {
    font-size: 1.75rem;
  }
  
  .category-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .category-links li a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .header {
    padding: 2.5rem 0;
  }
  
  .header h1 {
    font-size: 2.5rem;
  }
  
  .main {
    padding: 3rem 0;
  }
  
  .questions-grid {
    gap: 2.5rem;
  }
  
  .category-section {
    padding: 2rem;
  }
  
  .qa-article {
    padding: 2.5rem;
  }
  
  .qa-article h1 {
    font-size: 2rem;
  }
  
  .category-section:hover {
    transform: translateY(-3px);
  }
}

/* Standardized Form Styles */
.standardized-form-section {
  background: #f8f9fa;
  padding: 2rem 1rem;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

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

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.form-header p {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

.standardized-form .form-group {
  margin-bottom: 1.5rem;
}

.standardized-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.standardized-form input,
.standardized-form textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 16px; /* Prevents zoom on iOS */
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  min-height: 44px; /* iOS minimum touch target */
}

.standardized-form input:focus,
.standardized-form textarea:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.standardized-form textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0;
  min-height: auto !important;
  padding: 0 !important;
  flex-shrink: 0;
  position: relative;
  margin-top: 0.1rem;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.ask-ai-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 1;
  min-width: 140px;
}

.ask-ai-btn:hover {
  background: #218838;
}

.submit-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex: 2;
  min-width: 160px;
}

.submit-btn:hover:not(:disabled) {
  background: #0056b3;
}

.submit-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.form-disclaimer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
  text-align: center;
}

.form-disclaimer p {
  margin: 0.5rem 0;
  color: #666;
}

.success-message {
  text-align: center;
  padding: 2rem;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  color: #155724;
}

.success-message h4 {
  color: #155724;
  margin: 0 0 1rem 0;
}

.success-message a {
  color: #155724;
  text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .form-buttons {
    flex-direction: column;
  }
  
  .ask-ai-btn,
  .submit-btn {
    width: 100%;
    flex: none;
  }
  
  .standardized-form-section {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
  }
}
}

.lead-popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.lead-popup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
  max-height: calc(100vh - 2rem); /* Account for padding */
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: all 0.3s ease;
  margin-top: 1rem; /* Space from top on mobile */
  -webkit-overflow-scrolling: touch;
}

.lead-popup-overlay.show .lead-popup {
  transform: scale(1) translateY(0);
}

.lead-popup-content {
  padding: 1.5rem;
  position: relative;
}

.lead-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.lead-popup-close:hover {
  color: #333;
}

.lead-popup-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.lead-popup-header h3 {
  color: #2c3e50;
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
}

.lead-popup-header p {
  color: #666;
  margin: 0;
  font-size: 1rem;
}

.lead-popup-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem; /* Larger touch targets */
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 16px; /* Prevents zoom on iOS */
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none; /* Remove iOS styling */
  min-height: 44px; /* iOS minimum touch target */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
}



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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
  width: auto !important;
  margin: 0;
  min-height: auto !important;
  padding: 0 !important;
  flex-shrink: 0;
  position: relative;
  -webkit-appearance: checkbox;
  appearance: checkbox;
}

.lead-popup-submit {
  width: 100%;
  background: #3498db;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lead-popup-submit:hover:not(:disabled) {
  background: #2980b9;
}

.lead-popup-submit:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
}

.field-error {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

.error-message {
  background: #fdf2f2;
  border: 1px solid #e74c3c;
  color: #e74c3c;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
}

.lead-popup-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  color: #666;
}

.lead-popup-footer p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.lead-popup-footer p:first-child {
  font-weight: 600;
  color: #2c3e50;
}

.lead-popup-success {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  font-size: 3rem;
  color: #27ae60;
  margin-bottom: 1rem;
}

.lead-popup-success h3 {
  color: #2c3e50;
  margin: 0 0 1rem 0;
}

.lead-popup-success p {
  color: #666;
  margin: 0.5rem 0;
  line-height: 1.5;
}

.error-message {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.field-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.question-title {
  margin: 0;
  flex: 1;
}

.ask-expert-btn{
  display:inline-block;
  padding:10px 16px;
  background:#28a745;             /* green */
  color:#fff;
  border-radius:4px;
  text-decoration:none;
  font-weight:bold;
  font-size:14px;
  margin:0;
  border:none;
  cursor:pointer;
  white-space:nowrap;
}
.ask-expert-btn:hover{
  background:#218838;
  color:#fff;
}

.expert-popup{
  display:none;
  position:fixed;
  top:50px;
  left:50%;
  transform:translateX(-50%);
  z-index:1000;
  background:#fff;
  padding:20px;
  border:1px solid #ccc;
  border-radius:6px;
  box-shadow:0 0 10px rgba(0,0,0,.2);
  max-width:400px;
  width:90%;
}
.expert-popup input,
.expert-popup button{
  display:block;
  width:100%;
  margin:8px 0;
  padding:8px;
}
.expert-popup .close-popup-btn{
  position:absolute;
  top:8px;
  right:12px;
  background:none;
  border:none;
  font-size:18px;
  cursor:pointer;
  width:auto;
  height:auto;
  padding:4px;
  margin:0;
  color:#666;
  font-weight:bold;
}
.expert-popup .close-popup-btn:hover{
  color:#333;
  background:#f0f0f0;
  border-radius:50%;
}

/* Contact Form Styles */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h1 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.contact-header p {
  color: #666;
  font-size: 1.1rem;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e1e8ed;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0074e4;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

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

.form-row:last-of-type {
  grid-template-columns: 2fr 1fr;
}

.jess-notice {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #0074e4;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-row:last-of-type {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-submit-btn {
  background: #0074e4;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 116, 228, 0.2);
}

.contact-submit-btn:hover {
  background: #005fc0;
  box-shadow: 0 4px 8px rgba(0, 116, 228, 0.3);
  transform: translateY(-1px);
}

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

.contact-info {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  height: fit-content;
}

.contact-info h3 {
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.contact-info p {
  margin-bottom: 1.5rem;
  color: #666;
}

.contact-details {
  margin-top: 2rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h4 {
  color: #0074e4;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-item ul {
  margin: 0;
  padding-left: 1.2rem;
}

.contact-item li {
  margin-bottom: 0.5rem;
  color: #666;
}

.success-message {
  text-align: center;
  padding: 3rem 2rem;
}

.success-message .success-icon {
  width: 80px;
  height: 80px;
  background: #27ae60;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
}

.success-message h3 {
  color: #27ae60;
  margin-bottom: 1rem;
}

.back-to-questions {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: #0074e4;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.back-to-questions:hover {
  background: #005fc0;
}

.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
}

/* Ask the Expert Popup Close Button */
#expert-popup button#popup-close:hover {
  color: #0074e4;
}


/* Green Ask the Expert Button */
.ask-expert-btn {
  display: inline-block;
  margin: 10px 0;
  padding: 10px 16px;
  background-color: #28a745; /* green */
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.ask-expert-btn:hover {
  background-color: #218838;
}

/* Expert Form Popup */
.popup-form {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -20%);
  background: white;
  border: 2px solid #ccc;
  padding: 20px;
  z-index: 9999;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.popup-content input, .popup-content button {
  display: block;
  margin: 10px 0;
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}
.close-btn {
  float: right;
  font-size: 20px;
  cursor: pointer;
}

/* Key facts */
.facts ul { 
  margin: 0; 
  padding-left: 18px; 
}
.facts li { 
  margin: 4px 0; 
}

/* Enhanced Embedded Form Styling */
.buyin-form { 
  margin: 24px 0; 
  max-width: 560px; 
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.buyin-form label { 
  display: block; 
  margin-top: 10px; 
  font-weight: 600; 
  color: #495057;
}

.buyin-form input, 
.buyin-form textarea { 
  width: 100%; 
  padding: 10px; 
  margin-top: 4px; 
  border: 1px solid #ced4da; 
  border-radius: 4px; 
  font-size: 14px;
  box-sizing: border-box;
}

.buyin-form input:focus,
.buyin-form textarea:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin-top: 15px;
}

.consent input[type="checkbox"] {
  width: auto !important;
  margin-top: 0 !important;
  flex-shrink: 0;
}

.form-actions { 
  display: flex; 
  gap: 10px; 
  align-items: center; 
  margin-top: 20px; 
}

.ask-expert-btn { 
  display: inline-block; 
  padding: 10px 16px; 
  background: #28a745; 
  color: #fff !important; 
  border-radius: 4px; 
  text-decoration: none; 
  font-weight: 700; 
  transition: background-color 0.2s;
}

.ask-expert-btn:hover { 
  background: #218838; 
  text-decoration: none;
}

.submit-btn { 
  padding: 10px 16px; 
  border: 0; 
  background: #0d6efd; 
  color: #fff; 
  border-radius: 4px; 
  font-weight: 700; 
  cursor: pointer; 
  transition: background-color 0.2s;
}

.submit-btn:hover { 
  background: #0b5ed7; 
}

.submit-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Related Questions */
.related-questions ul {
  list-style: none;
  padding: 0;
}

.related-questions li {
  margin: 8px 0;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}

.related-questions li:last-child {
  border-bottom: none;
}

.related-questions a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 500;
}

.related-questions a:hover {
  text-decoration: underline;
}

/* Success and Error Messages */
.success-message {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.success-icon {
  font-size: 48px;
  color: #28a745;
  margin-bottom: 10px;
}

.error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.back-to-questions {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 16px;
  background: #6c757d;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
}

.back-to-questions:hover {
  background: #5a6268;
  text-decoration: none;
}
