/* ==========================================================================
   ZAKAT CALCULATOR (WOLOF) - STYLESHEET
   Design System: Deep Emerald (#0c3b2e), Warm Gold (#d4af37), Glassmorphism,
   Senegalese cultural aesthetics, dynamic dark/light themes, offline ready.
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-emerald: #0c3b2e;
  --primary-emerald-light: #165b47;
  --primary-emerald-dark: #07251c;
  --accent-gold: #d4af37;
  --accent-gold-hover: #b89528;
  --accent-gold-light: #fef8e7;
  
  --bg-main: #f4f7f5;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8faf9;
  
  --text-primary: #1a2e26;
  --text-secondary: #52665e;
  --text-muted: #83968e;
  --text-on-dark: #ffffff;
  
  --border-color: #e1e8e4;
  --border-accent: rgba(212, 175, 55, 0.3);
  
  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: #ecfdf5;
  --color-danger: #ef4444;
  --color-danger-bg: #fef2f2;
  --color-warning: #f59e0b;
  
  /* Mobile Money Brand Colors */
  --wave-blue: #00adff;
  --orange-money: #ff6600;
  --free-money: #e60000;
  
  /* Typography & Spacing */
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(12, 59, 46, 0.05);
  --shadow-md: 0 6px 20px rgba(12, 59, 46, 0.08);
  --shadow-lg: 0 12px 32px rgba(12, 59, 46, 0.15);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Theme Overrides */
[data-theme="dark"] {
  --bg-main: #0a1410;
  --bg-card: #12211b;
  --bg-card-subtle: #192c24;
  
  --text-primary: #f0f7f4;
  --text-secondary: #a3b8af;
  --text-muted: #677d74;
  
  --border-color: #23382f;
  --border-accent: rgba(212, 175, 55, 0.2);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
}

/* Reset & Base Settings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.app-container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px 40px 16px;
  flex: 1;
}

/* Header & Banner */
.app-header {
  background: linear-gradient(135deg, var(--primary-emerald-dark), var(--primary-emerald));
  color: var(--text-on-dark);
  padding: 24px 20px 32px 20px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.header-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: radial-gradient(circle at 90% 10%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
                    radial-gradient(circle at 10% 90%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-gold), #f3e5ab);
  color: var(--primary-emerald-dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-gold);
}

.app-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.app-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-control {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.select-control option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover, .select-control:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Nisab Live Header Card */
.nisab-header-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.nisab-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nisab-badge-icon {
  width: 36px;
  height: 36px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nisab-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
}

.nisab-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.btn-nisab-settings {
  background: var(--accent-gold);
  color: var(--primary-emerald-dark);
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-nisab-settings:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

/* Navigation Tabs */
.app-tabs {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  min-width: 110px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary-emerald);
  background: var(--bg-card-subtle);
}

.tab-btn.active {
  background: var(--primary-emerald);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Tab Sections */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* Stepper Bar */
.stepper-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
}

.stepper-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.step-item.active .step-circle {
  border-color: var(--primary-emerald);
  background: var(--primary-emerald);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(12, 59, 46, 0.15);
}

.step-item.completed .step-circle {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  color: var(--primary-emerald-dark);
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.active .step-label {
  color: var(--primary-emerald);
}

/* Cards & Form Controls */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  transition: var(--transition);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-emerald);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: #fff;
}

.badge-wave { background-color: var(--wave-blue); }
.badge-orange { background-color: var(--orange-money); }
.badge-free { background-color: var(--free-money); }

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

.form-input {
  width: 100%;
  padding: 12px 14px;
  padding-right: 60px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary-emerald);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(12, 59, 46, 0.1);
}

.input-currency {
  position: absolute;
  right: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

/* Gold/Silver Karat Selector */
.karat-selector {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.karat-btn {
  flex: 1;
  padding: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.karat-btn.active {
  background: var(--accent-gold);
  color: var(--primary-emerald-dark);
  border-color: var(--accent-gold);
}

/* Result Screen Styling */
.result-card-hero {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.result-card-hero.eligible {
  background: linear-gradient(135deg, var(--primary-emerald-dark), var(--primary-emerald));
  color: #ffffff;
  border: 2px solid var(--accent-gold);
}

.result-card-hero.not-eligible {
  background: linear-gradient(135deg, #374151, #1f2937);
  color: #ffffff;
  border: 1px solid var(--border-color);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.status-badge.eligible {
  background: rgba(212, 175, 55, 0.25);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.status-badge.not-eligible {
  background: rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
}

.result-zakat-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 0;
  color: #ffffff;
}

.result-zakat-amount span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-gold);
}

.result-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.summary-stat-box {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-box-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.stat-box-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

/* Action Buttons */
.button-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 24px;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-emerald);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-emerald-light);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent-gold);
  color: var(--primary-emerald-dark);
  box-shadow: var(--shadow-gold);
}

.btn-accent:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

/* Educational Accordion Section */
.faq-accordion {
  display: flex;
  flex-direction: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.accordion-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-emerald);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.accordion-header:hover {
  background: var(--bg-card-subtle);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.accordion-item.open .accordion-content {
  padding: 0 20px 20px 20px;
  max-height: 500px;
}

/* History List Table / Cards */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  transition: var(--transition);
}

.history-card:hover {
  box-shadow: var(--shadow-md);
}

.history-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.history-wealth {
  font-size: 0.95rem;
  font-weight: 600;
}

.history-zakat {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-emerald);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

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

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-emerald);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Print Specific Styles */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .app-header, .app-tabs, .stepper-container, .button-row, .modal-overlay {
    display: none !important;
  }

  .app-container {
    max-width: 100%;
    padding: 0;
  }

  .card {
    border: 1px solid #ccc;
    box-shadow: none;
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .app-header {
    padding: 20px 14px;
  }
  
  .result-zakat-amount {
    font-size: 1.8rem;
  }
  
  .button-row {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */
.app-footer {
  margin-top: 50px;
  background: var(--bg-card);
  border-top: 3px solid var(--accent-gold);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-md);
  padding: 40px 24px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-emerald);
}

[data-theme="dark"] .footer-brand-logo {
  color: var(--accent-gold);
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-badge {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   POLICY & ARTICLE PAGE STYLES
   ========================================================================== */
.policy-page-container {
  padding-bottom: 40px;
}

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.policy-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-emerald);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

[data-theme="dark"] .policy-title {
  color: var(--accent-gold);
}

.policy-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.policy-section {
  margin-bottom: 28px;
}

.policy-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-emerald-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .policy-section-title {
  color: var(--accent-gold-light);
}

.policy-text {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.policy-list {
  margin-left: 20px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.policy-list li {
  margin-bottom: 6px;
}

.policy-callout {
  background: var(--accent-gold-light);
  border-left: 4px solid var(--accent-gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  color: #5c4800;
}

[data-theme="dark"] .policy-callout {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold-light);
}

/* Contact Form Specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-info-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.info-icon {
  font-size: 1.5rem;
  background: var(--bg-card);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  min-height: 120px;
  resize: vertical;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .policy-card {
    padding: 20px 16px;
  }

  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* RTL Support for Arabic Language */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .logo-group,
[dir="rtl"] .nisab-info-item,
[dir="rtl"] .info-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-link:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .stepper-container {
  flex-direction: row-reverse;
}


