/* --- Hero Section Styles --- */
.fal-hero-section {
  --fal-gold: #c9ae70;
  --fal-white: #ffffff;
  --fal-ink: #0c0c0d;

  position: relative;
  width: 100%;
  height: 50vh;
  /* Adjust height as needed, e.g., 50vh, 60vh, or 100vh */
  min-height: 400px;
  overflow: hidden;
  font-family: "Tajawal", "Cairo", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--fal-ink);
}

.fal-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.fal-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.fal-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
      rgba(201, 174, 112, 0.35),
      transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85));
  z-index: 2;
}

/* Background Decoration Icon */
.fal-hero__bg-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 400px;
  color: var(--fal-gold);
  opacity: 0.05;
  /* Very subtle */
  z-index: 2;
  /* Above overlay, below content */
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fal-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.fal-hero__title {
  font-size: 4rem;
  font-weight: 800;
  color: var(--fal-white);
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.fal-hero__subtitle {
  display: block;
  font-size: 1.2rem;
  color: var(--fal-gold);
  margin-top: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .fal-hero__title {
    font-size: 2.5rem;
  }

  .fal-hero-section {
    height: 40vh;
  }

  .fal-hero__bg-icon {
    font-size: 250px;
  }
}

/* --- Contact Section Styles --- */

/* --- Video Background Styles --- */
.fal-join__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Behind content */
  overflow: hidden;
}

.fal-join__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  /* Dimming the video */
}

.fal-join__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right,
      rgba(201, 174, 112, 0.35),
      transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.85));
  z-index: 1;
  /* Above video, below content */
}

/* --- Contact Section Styles --- */
.fal-contact-v2 {
  --fal-gold: #c1a564;
  --fal-gold-light: #e3d2a5;
  --fal-bg: transparent;
  /* Transparent for video */
  --fal-text-dark: #1a1a1a;
  --fal-text-grey: #555555;
  --fal-border: #e0e0e0;
  --fal-input-bg: #f9f9f9;

  font-family: "Tajawal", "Cairo", sans-serif;
  padding: 80px 20px;

  /* Full Width & Height Settings */
  width: 100%;
  min-height: auto;
  /* تم التعديل ليتناسب مع المحتوى بدلاً من ملء الشاشة */
  position: relative;
  overflow: hidden;

  color: #ffffff;
  /* Default text white for video contrast */
}

/* Global Box Sizing for this section */
.fal-contact-v2,
.fal-contact-v2 * {
  box-sizing: border-box;
}

.fal-cv2__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  /* Above video and overlay */
}

/* Header */
.fal-cv2__header {
  text-align: center;
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fal-cv2__eyebrow {
  display: block;
  color: var(--fal-gold);
  font-weight: 800;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.fal-cv2__title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
  color: #ffffff;
  /* White title */
}

.fal-cv2__divider {
  width: 60px;
  height: 3px;
  background: var(--fal-gold);
  margin: 20px auto;
  border-radius: 2px;
}

/* Grid Layout */
.fal-cv2__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* Common Card Styles */
.fal-cv2__card {
  background: rgba(12, 12, 13, 0.95);
  /* Dark background */
  border: 1px solid rgba(193, 165, 100, 0.4);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  backdrop-filter: blur(10px);
  /* Glass effect */
  color: #ffffff;
  min-height: 980px;
}

/* Contact Info Column */
.fal-cv2__info-card {
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.fal-cv2__logo-img {
  max-width: 180px;
  height: auto;
}

.fal-cv2__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.fal-cv2__item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.fal-cv2__icon-box {
  width: 40px;
  height: 40px;
  background: rgba(193, 165, 100, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fal-gold);
  flex-shrink: 0;
  border: 1px solid rgba(193, 165, 100, 0.2);
}

.fal-cv2__icon-box svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.fal-cv2__label {
  font-size: 1.1rem;
  color: #cccccc;
  margin: 0 0 5px 0;
}

.fal-cv2__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.fal-cv2__value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.fal-cv2__value a:hover {
  color: var(--fal-gold);
}

/* Form Column */
.fal-cv2__form-card {
  animation: fadeInUp 0.8s ease forwards 0.4s;
  background: rgba(12, 12, 13, 0.95);
}

.fal-cv2__form-header {
  margin-bottom: 30px;
}

.fal-cv2__form-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: var(--fal-gold);
}

.fal-cv2__form-subtitle {
  color: #cccccc;
  font-size: 1rem;
}

/* Corner Accents (Reused) */
.fal-cv2__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--fal-gold);
  transition: all 0.3s ease;
  pointer-events: none;
}

.fal-cv2__corner-tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
  border-radius: 24px 0 0 0;
}

.fal-cv2__corner-tr {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
  border-radius: 0 24px 0 0;
}

.fal-cv2__corner-bl {
  bottom: -1px;
  left: -1px;
  border-right: none;
  border-top: none;
  border-radius: 0 0 0 24px;
}

.fal-cv2__corner-br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 24px 0;
}

.fal-cv2__card:hover .fal-cv2__corner {
  width: 30px;
  height: 30px;
}

/* Social Media Section */
.fal-cv2__social-section {
  margin-top: 30px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(193, 165, 100, 0.15);
  text-align: center;
}

.fal-cv2__social-label {
  font-weight: 800;
  margin-bottom: 15px;
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
}

.fal-cv2__social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.fal-cv2__social-btn {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--fal-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fal-gold);
  transition: all 0.3s ease;
  text-decoration: none;
}

.fal-cv2__social-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.fal-cv2__social-btn:hover {
  background: var(--fal-gold);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(193, 165, 100, 0.3);
}

/* --- WPForms Custom Styles for Contact Page --- */
.fal-contact-v2 .wpforms-container {
  margin: 0 !important;
  padding: 0 !important;
}

.fal-contact-v2 .wpforms-field-label {
  display: block !important;
  margin-bottom: 8px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #ffffff !important;
  /* Matches .fal-cv2__label-input */
}

/* --- UPDATED: Dark Input Fields --- */
.fal-contact-v2 .wpforms-field input,
.fal-contact-v2 .wpforms-field select,
.fal-contact-v2 .wpforms-field textarea {
  width: 100% !important;
  padding: 15px !important;
  border: 1px solid rgba(193, 165, 100, 0.2) !important;
  /* Gold border dim */
  border-radius: 12px !important;
  background: rgba(255,
      255,
      255,
      0.05) !important;
  /* Dark transparent background */
  font-family: inherit !important;
  font-size: 1rem !important;
  transition: all 0.3s ease !important;
  box-sizing: border-box !important;
  color: #ffffff !important;
  /* White text */
}

.fal-contact-v2 .wpforms-field input::placeholder,
.fal-contact-v2 .wpforms-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

.fal-contact-v2 .wpforms-field input:focus,
.fal-contact-v2 .wpforms-field select:focus,
.fal-contact-v2 .wpforms-field textarea:focus {
  outline: none !important;
  border-color: var(--fal-gold) !important;
  background: rgba(255,
      255,
      255,
      0.1) !important;
  /* Slightly lighter on focus */
  box-shadow: 0 0 0 4px rgba(193, 165, 100, 0.1) !important;
}

.fal-contact-v2 .wpforms-submit-container button {
  width: 100% !important;
  padding: 16px !important;
  background: var(--fal-gold) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.fal-contact-v2 .wpforms-submit-container button:hover {
  background: #a88d4e !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 20px rgba(193, 165, 100, 0.2) !important;
}

.fal-contact-v2 .wpforms-field-row {
  display: flex;
  gap: 15px;
}

.fal-contact-v2 .wpforms-field-row .wpforms-field {
  flex: 1;
}

/* Custom Form Styles for Contact Form */
.fal-contact-v2 .fal-custom-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.fal-contact-v2 .fal-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fal-contact-v2 .fal-form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fal-gold);
  text-align: right;
}

.fal-contact-v2 .fal-form-group input,
.fal-contact-v2 .fal-form-group select,
.fal-contact-v2 .fal-form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: transparent;
  border: none;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

/* File input styling */
.fal-contact-v2 .fal-form-group input[type="file"] {
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

/* Browser file button */
.fal-contact-v2 .fal-form-group input[type="file"]::file-selector-button {
  margin-inline-end: 12px;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 8px;
  background: var(--fal-gold);
  color: #1a1a1a;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.fal-contact-v2 .fal-form-group input[type="file"]::file-selector-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
}

.fal-contact-v2 .fal-form-group .fal-form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.fal-contact-v2 .fal-form-group input:focus,
.fal-contact-v2 .fal-form-group select:focus,
.fal-contact-v2 .fal-form-group textarea:focus {
  outline: none !important;
  border-bottom-color: var(--fal-gold) !important;
  background: transparent !important;
  box-shadow: none !important;
}

.fal-contact-v2 .fal-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

[dir="ltr"] .fal-contact-v2 .fal-form-group select {
  background-position: right 1rem center;
  padding-left: 1rem;
  padding-right: 2.5rem;
}

.fal-contact-v2 .fal-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.fal-contact-v2 .fal-form-submit {
  margin-top: 0.5rem;
}

.fal-contact-v2 .fal-form-submit button {
  width: 100%;
  padding: 1rem;
  background: var(--fal-gold);
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fal-contact-v2 .fal-form-submit button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.fal-contact-v2 .fal-form-submit button:active {
  transform: translateY(0);
}

.fal-contact-v2 .fal-form-submit button:focus {
  outline: 2px solid var(--fal-gold);
  outline-offset: 2px;
}

/* Prevent form focus from affecting other elements */
.fal-contact-v2 .fal-custom-form * {
  isolation: isolate;
}

/* Responsive & Elementor Fixes */
@media (max-width: 991px) {
  .fal-contact-v2 {
    padding: 50px 15px;
  }

  .fal-cv2__title {
    font-size: 2rem;
  }

  .fal-cv2__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .fal-cv2__form-card {
    order: -1;
  }

  .fal-cv2__card {
    padding: 25px 20px;
  }

  .fal-cv2__social-section {
    padding: 20px;
  }

  .fal-cv2__social-icons {
    flex-wrap: wrap;
    gap: 10px;
  }
}

.fal-contact-v2 .fal-form-group input,
.fal-contact-v2 .fal-form-group select,
.fal-contact-v2 .fal-form-group textarea {
  font-size: 16px;
}

/* Prevents zoom on iOS */