/* ============================================ */
/* Contact Page Styles */
/* ============================================ */

.contact-main {
  min-height: 100vh;
  background: #faf8f2;
}

/* Skip Link */
.skip-link {
  position: absolute;
  right: -9999px;
  background: #1a3d2b;
  color: #e8c96a;
  padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus {
  right: 16px;
  top: 16px;
}

/* Hero */
.contact-hero {
  background: linear-gradient(135deg, #1a3d2b 0%, #2d6a4f 100%);
  padding: 60px 20px;
  text-align: center;
  color: #e8c96a;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(232, 201, 106, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(232, 201, 106, 0.08) 0%, transparent 50%);
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.contact-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  margin: 0 0 12px;
  color: #e8c96a;
}

.contact-hero-sub {
  font-size: clamp(15px, 2.5vw, 18px);
  margin: 0;
  opacity: 0.95;
  color: #fdf6e3;
}

/* Container */
.contact-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Info Cards */
.contact-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.contact-info-card {
  background: white;
  padding: 24px 20px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  border: 1px solid #ebe6da;
  transition: all 0.3s ease;
  display: block;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 61, 43, 0.12);
  border-color: #c9a84c;
}

.contact-info-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.contact-info-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-info-value {
  font-size: 14px;
  color: #1a3d2b;
  font-weight: 700;
  word-break: break-word;
}

/* Form Section */
.contact-form-section {
  background: white;
  padding: 32px 24px;
  border-radius: 16px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(26, 61, 43, 0.05);
}

.contact-form-section h2 {
  color: #1a3d2b;
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 700;
}

.contact-form-intro {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
}

/* Form */
.contact-form {
  position: relative;
}

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

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

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a3d2b;
  margin-bottom: 6px;
}

.required {
  color: #c0392b;
  font-weight: 700;
}

.optional {
  color: #999;
  font-size: 11px;
  font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Tajawal', sans-serif;
  background: #fdfcf8;
  transition: all 0.2s ease;
  color: #1a3d2b;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c9a84c;
  background: white;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

.form-hint {
  font-size: 11px;
  color: #999;
  text-align: left;
  margin-top: 4px;
  direction: ltr;
}

#char-counter {
  font-weight: 700;
  color: #c9a84c;
}

.form-disclaimer {
  background: #fff8e1;
  border-right: 4px solid #f59e0b;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: #92400e;
}

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #1a3d2b, #2d6a4f);
  color: #e8c96a;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Tajawal', sans-serif;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 61, 43, 0.25);
}

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

.form-result {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.form-result.success {
  background: #d4f4dd;
  color: #15803d;
  border: 1px solid #22c55e;
}

.form-result.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* FAQ Section */
.faq-section {
  background: white;
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(26, 61, 43, 0.05);
}

.faq-section h2 {
  color: #1a3d2b;
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 700;
}

.faq-intro {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid #ebe6da;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  background: #fdfcf8;
}

.faq-item[open] {
  border-color: #c9a84c;
  background: white;
  box-shadow: 0 2px 8px rgba(201, 168, 76, 0.1);
}

.faq-item summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  color: #1a3d2b;
  font-size: 15px;
  list-style: none;
  position: relative;
  user-select: none;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: rgba(201, 168, 76, 0.05);
}

.faq-item summary::after {
  content: '▼';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #c9a84c;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  padding: 4px 18px 18px;
  color: #444;
  font-size: 14px;
  line-height: 1.9;
  border-top: 1px solid #f5f0e0;
  margin-top: 8px;
  padding-top: 16px;
}

.faq-answer a {
  color: #2d6a4f;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed #c9a84c;
}

.faq-answer a:hover {
  color: #1a3d2b;
  border-bottom-style: solid;
}

.faq-answer ul,
.faq-answer ol {
  margin: 8px 0;
  padding-right: 20px;
}

.faq-answer li {
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-container {
    padding: 24px 16px;
  }
  
  .contact-form-section,
  .faq-section {
    padding: 24px 16px;
  }
}

/* ============================================ */
/* FAQ Page Specific */
/* ============================================ */

.faq-search-hint {
  background: #fef3c7;
  border-right: 4px solid #f59e0b;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #92400e;
}

.faq-search-hint p {
  margin: 0;
  line-height: 1.7;
}

/* FAQ Categories Filter */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ebe6da;
}

.faq-cat-btn {
  padding: 8px 16px;
  background: #fdf6e3;
  border: 1px solid #ebe6da;
  border-radius: 999px;
  cursor: pointer;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a3d2b;
  transition: all 0.2s ease;
}

.faq-cat-btn:hover {
  background: #fef9e0;
  border-color: #c9a84c;
}

.faq-cat-btn.active {
  background: #1a3d2b;
  color: #e8c96a;
  border-color: #1a3d2b;
}

/* FAQ Item Hidden (when filtered) */
.faq-item.hidden {
  display: none;
}

/* FAQ CTA at end */
.faq-cta {
  margin-top: 32px;
  padding: 32px 24px;
  background: linear-gradient(135deg, #1a3d2b, #2d6a4f);
  border-radius: 12px;
  text-align: center;
  color: #e8c96a;
}

.faq-cta h3 {
  font-size: 22px;
  margin: 0 0 8px;
  color: #e8c96a;
}

.faq-cta p {
  font-size: 14px;
  margin: 0 0 20px;
  opacity: 0.95;
}

.btn-cta {
  display: inline-block;
  padding: 12px 32px;
  background: #c9a84c;
  color: #1a3d2b;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: #e8c96a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 201, 106, 0.4);
}

/* FAQ Link Card (in Contact page) */
.faq-link-card {
  margin-top: 32px;
  background: linear-gradient(135deg, #fdf6e3, #faf8f2);
  border: 2px solid #c9a84c;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.faq-link-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.faq-link-content {
  flex: 1;
  min-width: 200px;
}

.faq-link-content h3 {
  color: #1a3d2b;
  font-size: 20px;
  margin: 0 0 8px;
}

.faq-link-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

@media (max-width: 600px) {
  .faq-link-card {
    flex-direction: column;
    text-align: center;
  }
  
  .faq-categories {
    justify-content: center;
  }
}

/* ============================================ */
/* FAQ Page Specific Styles */
/* ============================================ */

/* Search Box */
.faq-search-box {
  margin-bottom: 24px;
}

.faq-search-box input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #ebe6da;
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Tajawal', sans-serif;
  background: white;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.faq-search-box input:focus {
  outline: none;
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* Categories */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.faq-cat-btn {
  padding: 8px 16px;
  background: white;
  border: 2px solid #ebe6da;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #1a3d2b;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Tajawal', sans-serif;
}

.faq-cat-btn:hover {
  background: #fdf6e3;
  border-color: #c9a84c;
}

.faq-cat-btn.active {
  background: linear-gradient(135deg, #1a3d2b, #2d6a4f);
  color: #e8c96a;
  border-color: #1a3d2b;
}

/* No Results */
.faq-no-results {
  text-align: center;
  padding: 40px 20px;
  background: #fdf6e3;
  border-radius: 12px;
  color: #92400e;
  font-size: 15px;
}

.faq-no-results a {
  color: #c9a84c;
  font-weight: 700;
}

/* CTA */
.faq-cta {
  margin-top: 32px;
  background: linear-gradient(135deg, #1a3d2b, #2d6a4f);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.faq-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}

.faq-cta h3 {
  color: #e8c96a;
  font-size: 20px;
  margin: 0 0 8px;
}

.faq-cta p {
  color: #fdf6e3;
  font-size: 14px;
  margin: 0 0 20px;
}

.faq-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #c9a84c;
  color: #1a3d2b;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.faq-cta-btn:hover {
  background: #e8c96a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* FAQ Link Card في Contact Page */
.faq-link-section {
  margin-top: 24px;
}

.faq-link-card {
  background: white;
  border: 2px dashed #c9a84c;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.faq-link-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.faq-link-content h3 {
  margin: 0 0 8px;
  color: #1a3d2b;
  font-size: 18px;
}

.faq-link-content p {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.faq-link-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #1a3d2b;
  color: #e8c96a;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}

.faq-link-btn:hover {
  background: #2d6a4f;
  transform: translateX(-3px);
}

@media (max-width: 600px) {
  .faq-link-card {
    flex-direction: column;
    text-align: center;
  }
  
  .faq-categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  
  .faq-cat-btn {
    flex-shrink: 0;
  }
}
