/* ==========================================================================
   Ather Radio & Quran Activities - Contact Us Stylesheet
   Theme: Glassmorphic Dark & Clean Light / Emerald Accent
   ========================================================================== */

/* Layout & Stage */
body.contact-page {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: var(--bg-primary, #0a0d14) !important;
  color: var(--text-primary, #f8fafc);
  transition: background-color 0.25s ease, color 0.25s ease;
}

[data-theme="light"] body.contact-page {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(59, 130, 246, 0.05) 0%, transparent 40%) !important;
}

@media (min-width: 993px) {
  .contact-dashboard {
    display: flex !important;
    flex-direction: row !important;
    min-height: 100vh;
    width: 100%;
    position: relative;
  }
  .contact-sidebar-left {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    z-index: 95 !important;
    box-sizing: border-box !important;
    background: #0c141d !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding-bottom: 90px !important;
  }
  [data-theme="light"] .contact-sidebar-left {
    background: #ffffff !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03);
  }
  .contact-sidebar-left .tv-nav-item {
    cursor: pointer;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    font-family: inherit;
    text-decoration: none;
  }
  .contact-main-stage {
    margin-left: 270px !important;
    width: calc(100% - 270px) !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    background-color: var(--bg-primary, #0a0d14);
  }
  [data-theme="light"] .contact-main-stage {
    background-color: #f8fafc !important;
  }
}

@media (max-width: 992px) {
  .contact-dashboard {
    display: block !important;
  }
  .contact-sidebar-left {
    display: none !important;
  }
  .contact-main-stage {
    margin-left: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
  }
  [data-theme="light"] .contact-main-stage {
    background-color: #f8fafc !important;
  }
  .site-header .container {
    padding: 0 16px !important;
  }
  .desktop-action-btn,
  .header-actions .user-auth-wrapper,
  .header-actions .auth-header-btn {
    display: none !important;
  }
}

/* Light Mode Header Polish */
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .brand-text h1 span:first-child {
  color: #0f172a !important;
}

[data-theme="light"] .brand-text p {
  color: #64748b !important;
}

/* Contact Main Content Area */
.contact-main-content {
  flex: 1 0 auto;
  padding-top: 18px;
  padding-bottom: 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* 2-Column Grid Layout */
.contact-grid-container {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Left Column: Information Cards */
.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  background: rgba(14, 22, 34, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .contact-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

.contact-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 35px rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .contact-card:hover {
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.12) !important;
}

.contact-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
}

[data-theme="light"] .contact-card-title {
  color: #0f172a !important;
}

.contact-card-title svg {
  color: #10b981;
}

/* Channel Items */
.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

[data-theme="light"] .contact-channel-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

.contact-channel-item:hover {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateX(3px);
}

[data-theme="light"] .contact-channel-item:hover {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

.contact-channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-icon.email {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

[data-theme="light"] .contact-channel-icon.email {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.contact-channel-icon.report {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

[data-theme="light"] .contact-channel-icon.report {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.contact-channel-icon.location {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

[data-theme="light"] .contact-channel-icon.location {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.contact-channel-icon.hours {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

[data-theme="light"] .contact-channel-icon.hours {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.contact-channel-details {
  flex: 1;
  min-width: 0;
}

.contact-channel-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 2px;
}

.contact-channel-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  word-break: break-all;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s ease;
}

[data-theme="light"] .contact-channel-val {
  color: #0f172a !important;
}

.contact-channel-val:hover {
  color: #34d399;
}

[data-theme="light"] .contact-channel-val:hover {
  color: #059669 !important;
}

.contact-channel-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.4;
}

[data-theme="light"] .contact-channel-note {
  color: #475569 !important;
}

/* Copy Email Button */
.copy-email-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  transition: all 0.15s ease;
}

[data-theme="light"] .copy-email-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.copy-email-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

[data-theme="light"] .copy-email-btn:hover {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
}

/* Social Connect Bar in Card */
.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.contact-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

[data-theme="light"] .contact-social-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #1e293b !important;
}

.contact-social-item:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.4);
}

.contact-social-item.facebook:hover {
  background: rgba(24, 119, 242, 0.12);
  border-color: #1877f2;
  color: #1877f2;
}

.contact-social-item.github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

[data-theme="light"] .contact-social-item.github:hover {
  background: #f1f5f9;
  border-color: #0f172a;
  color: #0f172a;
}

.contact-social-item.linkedin:hover {
  background: rgba(10, 102, 194, 0.12);
  border-color: #0a66c2;
  color: #0a66c2;
}

.contact-social-item svg {
  margin-bottom: 6px;
}

.contact-social-item span {
  font-size: 0.8rem;
  font-weight: 600;
}

/* Right Column: Contact Form */
.contact-form-card {
  background: rgba(14, 22, 34, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .contact-form-card {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
}

.contact-form-header {
  margin-bottom: 24px;
}

.contact-form-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

[data-theme="light"] .contact-form-header h2 {
  color: #0f172a !important;
}

.contact-form-header p {
  font-size: 0.92rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

[data-theme="light"] .contact-form-header p {
  color: #64748b !important;
}

/* Form Groups & Inputs */
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form-group {
  margin-bottom: 18px;
}

.contact-form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

[data-theme="light"] .contact-form-label {
  color: #1e293b !important;
}

.contact-form-label .required-star {
  color: #ef4444;
  margin-left: 2px;
}

.contact-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.contact-input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-control {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px 12px 42px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #ffffff;
  background: rgba(10, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  transition: all 0.2s ease;
  outline: none;
}

[data-theme="light"] .contact-form-control {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

.contact-form-control:focus {
  border-color: #10b981;
  background: rgba(10, 16, 26, 0.95);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .contact-form-control:focus {
  background: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3.5px rgba(16, 185, 129, 0.2) !important;
}

.contact-form-control::placeholder {
  color: #64748b;
  opacity: 0.8;
}

[data-theme="light"] .contact-form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 1;
}

/* Custom Select */
select.contact-form-control {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  cursor: pointer;
  background-color: rgba(10, 16, 26, 0.85);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  padding-right: 42px !important;
}

[data-theme="light"] select.contact-form-control {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  padding-right: 42px !important;
}

/* Textarea */
textarea.contact-form-control {
  padding-left: 14px;
  resize: vertical;
  min-height: 120px;
}

.contact-char-count {
  display: flex;
  justify-content: flex-end;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

/* Submit Button */
.contact-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 8px;
}

.contact-submit-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

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

/* Alerts / Flash Messages */
.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: contactFadeIn 0.3s ease;
}

@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

[data-theme="light"] .contact-alert.success {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
}

.contact-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

[data-theme="light"] .contact-alert.error {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #991b1b !important;
}

.contact-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ Accordion Section */
.contact-faq-section {
  margin-top: 56px;
}

.contact-faq-header {
  text-align: center;
  margin-bottom: 28px;
}

.contact-faq-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px;
}

[data-theme="light"] .contact-faq-header h3 {
  color: #0f172a !important;
}

.contact-faq-header p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
}

[data-theme="light"] .contact-faq-header p {
  color: #64748b !important;
}

.contact-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.contact-faq-item {
  background: rgba(14, 22, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

[data-theme="light"] .contact-faq-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

.contact-faq-item.active {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .contact-faq-item.active {
  border-color: #86efac !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08) !important;
}

.contact-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  gap: 14px;
}

[data-theme="light"] .contact-faq-question {
  color: #0f172a !important;
}

.contact-faq-question svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: #10b981;
}

.contact-faq-item.active .contact-faq-question svg {
  transform: rotate(180deg);
}

.contact-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 22px;
  color: #94a3b8;
  font-size: 0.93rem;
  line-height: 1.6;
}

[data-theme="light"] .contact-faq-answer {
  color: #475569 !important;
}

.contact-faq-item.active .contact-faq-answer {
  max-height: 300px;
  padding: 0 22px 20px;
}

/* Light Mode Footer Polish */
[data-theme="light"] .site-footer {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .site-footer .copyright-text {
  color: #64748b !important;
}

[data-theme="light"] .site-footer #durood-btn {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
}

[data-theme="light"] .site-footer .social-icon-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}

[data-theme="light"] .site-footer .social-icon-btn:hover {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #059669 !important;
}

/* Toast Notification for Copy */
.contact-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.contact-toast.show {
  opacity: 1;
  transform: translateY(0);
}
