/* استيراد خط مشابه جداً للتصميم */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* إعدادات عامة وتصفير الهوامش */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html,
body {
  overflow-x: clip;
  background-color: #ffffff;
}

/* ================= شريط التنقل العلوي لصفحة تفاصيل الكورس (Navbar Section) ================= */
.single-course-nav-section {
  width: 100%;
  padding: 24px 40px 0 40px;
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none;
}

/* ========== Contact Section Split Layout ========== */

.navbar {
  box-shadow:
    8px 0 15px -8px rgba(0, 0, 0, 0.12),
    -8px 0 15px -8px rgba(0, 0, 0, 0.12) !important;
}

.contact-section {
  width: 100%;
  min-height: calc(100vh - 90px);
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none;
}

.contact-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 90px);
}

/* ========== Left Column (Form Area) ========== */
.contact-left-col {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 30px;
}

.contact-form-card {
  width: 100%;
  max-width: 500px;
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none;
  border-radius: 20px;
  padding: 38px 34px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #f2f2f2;
}

.form-title {
  font-size: 29px;
  font-weight: 700;
  color: #313131;
  margin-bottom: 28px;
  letter-spacing: -0.4px;
}

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

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

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: #3b3b3b;
  margin-bottom: 8px;
}

.form-label .req {
  color: #e04f5f;
}

.form-input,
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid #eaeaea;
  background-color: #fcfcfc;
  font-size: 13px;
  color: #262626;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.form-input::placeholder {
  color: #b0b0b0;
}

.form-input:focus,
.form-select:focus {
  border-color: #046868;
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none;
}

/* Pills Selection Buttons */
.pill-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pill-btn {
  height: 40px;
  border-radius: 8px;
  border: none;
  background-color: #f1f3f4;
  color: #6e7375;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background-color: #e4e8ea;
}

.pill-btn.active {
  background-color: #046868;
  color: #ffffff;
  font-weight: 600;
}

/* Custom Select Dropdown */
.select-wrapper {
  position: relative;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  color: #666666;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
}

/* Checkbox */
.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 24px;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #046868;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 11px;
  line-height: 1.5;
  color: #555555;
}

.checkbox-label a {
  color: #046868;
  text-decoration: underline;
  font-weight: 500;
}

/* Submit Button */
.btn-submit-form {
  width: 100%;
  height: 50px;
  background-color: #e39a06;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
}

.btn-submit-form:hover {
  background-color: #c98812;
  transform: translateY(-1px);
}

.form-footer-note {
  text-align: center;
  font-size: 10.5px;
  color: #8c8c8c;
  margin-top: 12px;
}

/* ========== Right Column (Contact Info Area) ========== */
.contact-right-col {
  background-color: #016969;
  display: flex;
  align-items: start;
  justify-content: center;
  padding: 60px 45px;
  color: #ffffff;
}

.contact-info-wrapper {
  width: 100%;
  max-width: 520px;
}

/* Badge */
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #df9a18;
}

.info-title {
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.info-subtitle {
  font-size: 15.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 34px;
  max-width: 440px;
}

/* ========== Stacked & Tilted Contact Cards ========== */
.info-cards-stack {
  display: flex;
  flex-direction: column;
}

.info-card {
  margin: 10px 0px;
  position: relative;
  width: 100%;
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.25s ease,
    z-index 0.2s ease;
}

/* زوايا الميلان والتداخل المطابقة للصورة */
.card-whatsapp {
  background-color: #ffffff;
  box-shadow: none;
  transform: rotate(-1.6deg);
  z-index: 1;
}

.card-email {
  background-color: #e39a06;
  transform: rotate(1.4deg);
  margin-top: -8px;
  z-index: 2;
}

.card-hours {
  background-color: #313131;
  transform: rotate(-1.2deg);
  margin-top: -8px;
  z-index: 3;
}

.card-social {
  background-color: #0a7c7c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(1deg);
  margin-top: -8px;
  z-index: 4;
}

.info-card:hover {
  transform: rotate(0deg) scale(1.015);
  z-index: 10;
}

.info-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* حاويات الأيقونات الشفافة الأربعة */
.info-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-bg-teal {
  background-color: #046868;
}

.icon-bg-teal,
.icon-bg-gold-light,
.icon-bg-dark-light,
.icon-bg-teal-light {
  background-color: transparent;
}

.custom-contact-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}

/* Card Typography */
.card-top-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.meta-label {
  font-size: 10px;
  font-weight: 700;
  color: #464545;
  letter-spacing: 0.4px;
}

.meta-pill.pill-gold {
  background-color: #df9a18;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
}

.card-main-val {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 3px;
}

.dark-text {
  color: #313131;
}

.white-text {
  color: #ffffff;
}

.card-sub-desc {
  font-size: 11px;
  font-weight: 400;
}

.gray-text {
  color: #777777;
}

.dark-gold-text {
  color: rgba(35, 25, 5, 0.75);
}

.light-gray-text {
  color: rgba(255, 255, 255, 0.65);
}

.teal-sub-text {
  color: rgba(255, 255, 255, 0.75);
}

/* Right Action Circles & Badges */
.card-action-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.circle-teal {
  background-color: #046868;
}

.circle-white {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none;
}

.status-pill-gold {
  background-color: #df9a18;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  flex-shrink: 0;
}

.status-text-available {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  flex-shrink: 0;
}

/* Social Links inside Card 4 */
.social-links-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.social-item {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

.social-dot {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 700;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
  .contact-split-layout {
    grid-template-columns: 1fr;
  }

  .contact-left-col {
    padding: 40px 20px;
  }

  .contact-right-col {
    padding: 50px 24px 70px;
  }
}

@media (max-width: 576px) {
  .contact-form-card {
    padding: 28px 20px;
  }

  .form-row-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pill-group {
    grid-template-columns: 1fr;
  }

  .info-title {
    font-size: 30px;
  }

  .card-main-val {
    font-size: 15.5px;
  }

  .info-card {
    padding: 16px;
  }
}

/* ========== Success Modal Overlay & Box ========== */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.contact-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-box {
  width: 100%;
  max-width: 520px;
  background-color: #ffffff;
  border-radius: 22px;
  padding: 42px 38px 36px;
  text-align: center;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
  border: 1px solid #f0f0f0;
  transform: translateY(15px) scale(0.96);
  transition: transform 0.25s ease;
}

.contact-modal-overlay.active .contact-modal-box {
  transform: translateY(0) scale(1);
}

.modal-title {
  font-size: 28px;
  font-weight: 800;
  color: #2b2b2b;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}

.modal-subtitle {
  font-size: 14.5px;
  font-weight: 400;
  color: #7a7a7a;
  line-height: 1.55;
  margin-bottom: 28px;
}

.btn-modal-close {
  width: 100%;
  height: 52px;
  background-color: #df9a18;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.btn-modal-close:hover {
  background-color: #c98812;
  transform: translateY(-1px);
}

/* Responsive Modal */
@media (max-width: 576px) {
  .contact-modal-box {
    padding: 32px 22px 28px;
    border-radius: 18px;
  }

  .modal-title {
    font-size: 22px;
  }

  .modal-subtitle {
    font-size: 13px;
  }

  .btn-modal-close {
    height: 46px;
    font-size: 14.5px;
  }
}

/* ========== Custom Select + Date/Time Picker ========== */
.custom-select,
.dt-picker {
  position: relative;
}

.cs-trigger {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid #eaeaea;
  background-color: #fcfcfc;
  font-size: 13px;
  color: #262626;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease;
}

.cs-trigger:hover,
.cs-trigger[aria-expanded="true"] {
  border-color: #046868;
}

.cs-value.placeholder {
  color: #b0b0b0;
}

.cs-arrow {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.cs-trigger[aria-expanded="true"] .cs-arrow {
  transform: rotate(180deg);
}

.cs-menu,
.dt-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s ease;
}

.cs-menu {
  list-style: none;
  padding: 6px;
}

.custom-select.open .cs-menu,
.dt-picker.open .dt-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cs-option {
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #3b3b3b;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cs-option:hover {
  background-color: #f1f3f4;
}

.cs-option.selected {
  background-color: #046868;
  color: #ffffff;
  font-weight: 600;
}

/* Date/Time panel */
.dt-panel {
  padding: 14px;
}

.dt-step[hidden] {
  display: none;
}

.dt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dt-title {
  font-size: 14px;
  font-weight: 700;
  color: #262626;
}

.dt-nav {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #f1f3f4;
  color: #046868;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dt-nav:hover:not(:disabled) {
  background: #e4e8ea;
}

.dt-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dt-spacer {
  width: 30px;
}

.dt-week,
.dt-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.dt-week span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #9a9a9a;
  padding-bottom: 6px;
}

.dt-day {
  height: 34px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 12.5px;
  color: #3b3b3b;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dt-day:hover:not(:disabled):not(.active) {
  background: #f1f3f4;
}

.dt-day.today {
  color: #df9a18;
  font-weight: 700;
}

.dt-day.active {
  background: #046868;
  color: #ffffff;
  font-weight: 600;
}

.dt-day:disabled {
  color: #d2d2d2;
  cursor: not-allowed;
}

.dt-continue {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border: none;
  border-radius: 50px;
  background: #df9a18;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dt-continue:hover:not(:disabled) {
  background: #c98812;
}

.dt-continue:disabled {
  background: #ececec;
  color: #b0b0b0;
  cursor: not-allowed;
}

.dt-hours {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.dt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.dt-minutes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  flex: 1;
}

.dt-time {
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #f1f3f4;
  color: #6e7375;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dt-time:hover {
  background: #e4e8ea;
}

.dt-time.active {
  background: #046868;
  color: #ffffff;
  font-weight: 600;
}

.dt-period {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #f1f3f4;
  border-radius: 8px;
}

.dt-per {
  height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6e7375;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dt-per.active {
  background: #046868;
  color: #ffffff;
}
