/* Main content wrapper for proper footer positioning */
.main-content {
  flex: 1;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: #ffffff;
  padding: 3rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-section {
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.footer-logo-section {
  align-items: flex-start;
  text-align: left;
}

.footer-logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  max-width: 300px;
}

.footer-description {
  font-size: 0.9rem;
  color: #a0aec0;
  line-height: 1.6;
  margin: 0;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #68d391;
  border-bottom: 2px solid #68d391;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-links a:hover {
  color: #68d391;
}

.footer-links a::before {
  content: "→";
  margin-right: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.footer-links a:hover::before {
  opacity: 1;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 1rem;
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.contact-info .label {
  color: #68d391;
  font-weight: 600;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.contact-info a {
  color: #e2e8f0;
  text-decoration: none;
  transition: color 0.3s ease;
  word-break: break-all;
}

.contact-info a:hover {
  color: #68d391;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #a0aec0;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #68d391;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Logo theme styling - completely natural look without any filters */
/* Remove ALL filters to get clean natural appearance */
.footer-logo,
[data-theme="light"] .footer-logo,
[data-theme="dark"] .footer-logo,
html:not([data-theme]) .footer-logo,
.footer [data-theme="light"] .footer-logo,
.footer [data-theme="dark"] .footer-logo,
.footer .footer-logo,
footer .footer-logo {
  /* No filters at all - use the logo's natural colors */
  filter: none !important;
  opacity: 1 !important;
}

/* Override any aggressive filters that might be applied */
.footer-logo,
.footer .footer-logo,
footer .footer-logo {
  /* Ensure no harsh filters are applied */
  transition: filter 0.3s ease !important;
}

/* Dark theme adjustments */
[data-theme="dark"] .footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Light theme adjustments */
[data-theme="light"] .footer,
html:not([data-theme]) .footer {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  color: #2d3748;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-title,
html:not([data-theme]) .footer-title {
  color: #38a169;
}

[data-theme="light"] .footer-links a,
html:not([data-theme]) .footer-links a {
  color: #4a5568;
}

[data-theme="light"] .footer-links a:hover,
html:not([data-theme]) .footer-links a:hover {
  color: #38a169;
}

[data-theme="light"] .contact-info li,
html:not([data-theme]) .contact-info li {
  color: #4a5568;
}

[data-theme="light"] .contact-info .label,
html:not([data-theme]) .contact-info .label {
  color: #38a169;
}

[data-theme="light"] .contact-info a,
html:not([data-theme]) .contact-info a {
  color: #4a5568;
}

[data-theme="light"] .contact-info a:hover,
html:not([data-theme]) .contact-info a:hover {
  color: #38a169;
}

[data-theme="light"] .footer-description,
html:not([data-theme]) .footer-description {
  color: #718096;
}

[data-theme="light"] .footer-bottom,
html:not([data-theme]) .footer-bottom {
  color: #718096;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .footer-bottom a,
html:not([data-theme]) .footer-bottom a {
  color: #38a169;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 0 1.5rem;
  }
  
  .footer {
    padding: 2.5rem 0 1.5rem 0;
  }
  
  .footer-section {
    min-height: auto;
  }
  
  .footer-logo-section {
    order: -1;
    align-items: center;
    text-align: center;
  }
  
  .footer-logo {
    height: 70px;
  }
  
  .footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
  
  .footer-link {
    padding: 0.5rem 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .footer {
    padding: 2rem 0 1rem 0;
  }
  
  .footer-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-logo {
    height: 60px;
  }
  
  .footer-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .footer-link {
    width: 100%;
    max-width: 200px;
    padding: 0.6rem 1rem;
    min-height: 44px;
    text-align: center;
  }
  
  .contact-info {
    gap: 0.75rem;
  }
  
  .contact-item {
    font-size: 0.9rem;
    padding: 0.5rem;
  }
  
  .footer-bottom {
    padding: 1rem 0;
    font-size: 0.85rem;
  }
}

/* Feedback Section Styles */
.feedback-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Light mode feedback description */
[data-theme="light"] .feedback-description,
html:not([data-theme]) .feedback-description {
  color: rgba(55, 65, 81, 0.85);
}

/* Light mode feedback email link */
[data-theme="light"] .feedback-email-link,
html:not([data-theme]) .feedback-email-link {
  color: rgba(55, 65, 81, 0.85);
  border-color: rgba(55, 65, 81, 0.3);
}

.feedback-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feedback-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  justify-content: center;
}

.feedback-button:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.feedback-email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  justify-content: center;
}

.feedback-email-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Feedback Modal Styles */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.feedback-modal.active {
  opacity: 1;
  visibility: visible;
}

.feedback-modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  margin: 1rem;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dark theme feedback modal */
[data-theme="dark"] .feedback-modal-content {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.feedback-modal.active .feedback-modal-content {
  transform: translateY(0);
}

.feedback-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Dark theme modal header */
[data-theme="dark"] .feedback-modal-header {
  border-bottom: 1px solid #4b5563;
}

.feedback-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

/* Dark theme modal title */
[data-theme="dark"] .feedback-modal-title {
  color: #f9fafb;
}

.feedback-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feedback-close-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Dark theme close button */
[data-theme="dark"] .feedback-close-btn {
  background: #374151;
  color: #d1d5db;
}

[data-theme="dark"] .feedback-close-btn:hover {
  background: #4b5563;
  color: #f3f4f6;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feedback-form-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

/* Dark theme form labels */
[data-theme="dark"] .feedback-form-label {
  color: #e5e7eb;
}

.feedback-form-input,
.feedback-form-textarea {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
  background: white;
  color: #1f2937;
}

/* Dark theme form inputs and textarea */
[data-theme="dark"] .feedback-form-input,
[data-theme="dark"] .feedback-form-textarea {
  background: #374151;
  border: 2px solid #4b5563;
  color: #f9fafb;
}

[data-theme="dark"] .feedback-form-input::placeholder,
[data-theme="dark"] .feedback-form-textarea::placeholder {
  color: #9ca3af;
}

.feedback-form-input:focus,
.feedback-form-textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Dark theme form focus states */
[data-theme="dark"] .feedback-form-input:focus,
[data-theme="dark"] .feedback-form-textarea:focus {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.feedback-form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.feedback-form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.feedback-submit-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.feedback-submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.feedback-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.feedback-cancel-btn {
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedback-cancel-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

/* Dark theme cancel button */
[data-theme="dark"] .feedback-cancel-btn {
  color: #d1d5db;
  border: 2px solid #4b5563;
}

[data-theme="dark"] .feedback-cancel-btn:hover {
  background: #374151;
  border-color: #6b7280;
  color: #f3f4f6;
}

.feedback-status {
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.feedback-status.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.feedback-status.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Dark theme status messages */
[data-theme="dark"] .feedback-status.success {
  background: #064e3b;
  color: #6ee7b7;
  border: 1px solid #047857;
}

[data-theme="dark"] .feedback-status.error {
  background: #7f1d1d;
  color: #fca5a5;
  border: 1px solid #dc2626;
}

/* Responsive Feedback Styles */
@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-logo-section {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .feedback-buttons {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .feedback-button,
  .feedback-email-link {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.625rem 0.75rem;
  }
  
  .feedback-modal-content {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .feedback-form-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .feedback-buttons {
    flex-direction: column;
  }
  
  .feedback-button,
  .feedback-email-link {
    width: 100%;
    min-height: 48px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  
  .feedback-close-btn {
    min-width: 44px;
    min-height: 44px;
  }
  
  .feedback-submit-btn,
  .feedback-cancel-btn {
    min-height: 48px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}