/* Local font: Vazirmatn (self-hosted) */
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/static/Vazirmatn-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/static/Vazirmatn-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/static/Vazirmatn-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vazirmatn'; src: url('/fonts/static/Vazirmatn-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: var(--bs-body-font-family);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  display: none;
}
:root {
  --bs-body-font-family: 'Vazirmatn', "Tinos", DM Sans, -apple-system, BlinkMacSystemFont,
  Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif, Apple Color Emoji,
  Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

body {
  font-family: var(--bs-body-font-family);
  direction: rtl;
  text-align: right;
  color: #fff;
  font-size: 1.1rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  scrollbar-width: none;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(53, 42, 42, 0.651);
  z-index: 1;
}

/* Fallback for video */
.video-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/hero-fallback.jpg") center/cover no-repeat;
  z-index: -3;
}

/* Social Media Icons */
.social-icons {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.social-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.social-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.main-content {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  scrollbar-width: none;
  margin: 0 auto;
}

.main-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  background: #000000a6;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
  z-index: 1;
}

.contact-section {
  position: relative;
  z-index: 2;
  max-width: 500px;
  width: 100%;
  padding: 30px;
  border-radius: 20px;
  max-height: 100%;
  overflow-y: auto;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .main-content {
    padding: 20px 10px;
    align-items: center;
    height: 100vh;
    padding-top: 20px;
  }

  .contact-section {
    max-width: 100%;
    width: 100%;
    padding: 20px;
    border-radius: 0;
    overflow-y: auto;
  }

  .main-content::before {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  max-width: 200px;
  height: auto;
}

.main-heading {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.3;
  text-align: center;
  color: #fff;
}

.subheading {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.5;
}

.additional-text {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 20px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 20px 0 5px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group label {
  position: absolute;
  top: 15px;
  right: 0;
  color: #aaa;
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.8rem;
  color: #8b5cf6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: #8b5cf6;
}

.form-group select {
  cursor: pointer;
  padding: 10px 0;
}

.form-group select option {
  background: #333;
  color: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  padding-bottom: 30px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  #bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% 60%;
  }
  .main-heading {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .subheading {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .additional-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .logo {
    max-width: 150px;
  }

  /* Mobile Social Icons - Bottom Bar */
  .social-icons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 10px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .social-icon {
    width: 45px;
    height: 45px;
  }

  .social-icon img {
    width: 20px;
    height: 20px;
  }
  .submit-btn {
    padding: 12px 25px;
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 1.5rem;
  }

  .subheading {
    font-size: 0.9rem;
  }

  .additional-text {
    font-size: 0.75rem;
  }

  .contact-section {
    padding: 0px 15px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 18px 0 3px 0;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 12px 25px;
    font-size: 1rem;
    margin-bottom: 40px;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-content {
    padding: 0 40px;
  }

  .contact-section {
    max-width: 450px;
    padding: 25px;
  }

  .main-heading {
    font-size: 2.2rem;
  }

  .social-icons {
    left: 15px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .main-content {
    padding: 0 60px;
  }

  .contact-section {
    max-width: 550px;
    padding: 40px;
  }

  .main-heading {
    font-size: 3rem;
  }

  .subheading {
    font-size: 1.2rem;
  }

  .additional-text {
    font-size: 1rem;
  }
}

/* Form Validation Styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-bottom-color: #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* Loading State */
.submit-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn.loading::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group.half {
  flex: 1;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-row .form-group.half {
    width: 100%;
  }
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 45px;
  text-align: center;
}

.time-box {
  height: 70px;
  width: 70px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.time-box span {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.2;
}

.label {
  font-size: 0.7rem;
  opacity: 0.8;
}
/* اجعل لِيبِل select يطفو لأعلى عند التركيز أو بعد اختيار قيمة */
.form-group select:focus + label,
.form-group select:valid + label {
  top: 0;
  font-size: 0.8rem;
  color: #8b5cf6;
}
