/* =========================================================
   Contact CTA — تواصل معنا / دعنا نوصّل التجربة إلى مدرستك
   Faithful rebuild of Figma node 2176:532 (RTL)
   Desktop reference: 1280px canvas, inner content 1153px
   ========================================================= */

.contact {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 104px 60px;                 /* Figma root px-60 py-104 */
  background: #f4f6fa;                  /* section band background */
  font-family: var(--font, "Tajawal", "Segoe UI", Tahoma, sans-serif);
  color: #334155;
  box-sizing: border-box;
}
.contact *,
.contact *::before,
.contact *::after { box-sizing: border-box; }

.contact__inner {
  position: relative;
  width: 100%;
  max-width: 1153px;                    /* 585 + 28 + 540 */
}

/* decorative blurred indigo ellipse (Figma 2176:533:
   ellipse 660x470, fill #372873 @16%, gaussian blur 85) */
.contact__glow {
  position: absolute;
  left: 6px;
  top: 46px;
  width: 660px;
  height: 470px;
  border-radius: 50%;
  background: rgba(55, 40, 115, 0.16);
  filter: blur(85px);
  z-index: 0;
  pointer-events: none;
}

/* content row — copy (right) + form (left) */
.contact__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;                 /* rtl: first child (copy) sits right */
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* =========================================================
   Copy column (Figma 2176:559) — w 585
   ========================================================= */
.contact__copy {
  flex: 0 0 585px;
  width: 585px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  text-align: right;
}

.contact__title {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  color: #241b4f;
}

.contact__lead {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  color: #334155;
}

.contact__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__benefit {
  display: flex;
  flex-direction: row-reverse;         /* Figma: check on the right, text to its left */
  align-items: center;
  gap: 12px;
}

.contact__benefit-text {
  flex: 1 1 0;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #334155;
  text-align: right;
}

.contact__benefit-badge {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(99, 153, 34, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__benefit-icon { display: block; }

/* =========================================================
   Form card (Figma 2176:535) — w 540, white card
   ========================================================= */
.contact__form {
  flex: 0 0 540px;
  width: 540px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 36px 34px;
  background: #ffffff;
  border: 1px solid #e7e5f0;
  /* Figma physical radii: tl24 tr10 br24 bl10 */
  border-radius: 24px 10px 24px 10px;
}

.contact__form-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.contact__form-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: #241b4f;
  white-space: nowrap;
}
.contact__form-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #6b6790;
}

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

.contact__label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #6b6790;
  text-align: right;
}

.contact__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: #f1f5f9;
  border: 1px solid rgba(55, 40, 115, 0.16);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #241b4f;
  text-align: right;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact__input::placeholder {
  color: #6b6790;
  opacity: 1;
}
.contact__input:focus {
  border-color: rgba(55, 40, 115, 0.45);
  box-shadow: 0 0 0 3px rgba(55, 40, 115, 0.08);
}

/* stage select — custom chevron on the left (RTL) */
.contact__select-wrap {
  position: relative;
  width: 100%;
}
.contact__select {
  padding-left: 42px;                  /* room for chevron */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 12px;                 /* keep the same rounded corners as the inputs */
  cursor: pointer;
  color: #6b6790;                      /* resting = muted placeholder tone (Figma) */
}
.contact__select option { color: #241b4f; }

/* ---- custom rounded dropdown (replaces the native popup) ---- */
.contact__select-wrap.has-dd > .contact__select { display: none; }   /* keep native for value, hide visually */

.contact__dd-trigger {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 42px;               /* room for chevron on the left (RTL) */
  background: #f1f5f9;
  border: 1px solid rgba(55, 40, 115, 0.16);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  color: #241b4f;
  text-align: right;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact__dd-trigger.is-placeholder { color: #6b6790; }
.contact__select-wrap.is-open .contact__dd-trigger {
  border-color: rgba(55, 40, 115, 0.45);
  box-shadow: 0 0 0 3px rgba(55, 40, 115, 0.08);
}

.contact__dd-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(55, 40, 115, 0.16);
  border-radius: 12px;                  /* fully rounded dropdown */
  box-shadow: 0 16px 40px rgba(36, 27, 79, 0.18);
  display: none;
}
.contact__select-wrap.is-open .contact__dd-list { display: block; }

.contact__dd-option {
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: #241b4f;
  cursor: pointer;
  text-align: right;
  transition: background 0.15s ease;
}
.contact__dd-option:hover { background: rgba(55, 40, 115, 0.08); }
.contact__dd-option.is-selected { background: rgba(55, 40, 115, 0.12); font-weight: 700; }
.contact__select-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  pointer-events: none;
}

/* submit button (Figma 2176:557) */
.contact__submit {
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  background: #372873;                  /* Figma button indigo */
  color: #f7f7fb;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  border: none;
  /* Figma physical radii: tl25 tr10 br25 bl10 */
  border-radius: 25px 10px 25px 10px;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.25s ease;
}
.contact__submit:hover {
  filter: brightness(1.12);
  box-shadow: 0 12px 30px rgba(55, 40, 115, 0.35);
  transform: translateY(-1px);
}
.contact__submit:active { transform: translateY(0); }
.contact__submit:disabled { opacity: 0.7; cursor: default; filter: none; transform: none; box-shadow: none; }

/* submission status message */
.contact__status {
  margin: 8px 0 0;
  min-height: 1em;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: right;
}
.contact__status.is-ok  { color: #2f8a2f; }
.contact__status.is-err { color: #c0392b; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1200px) {
  .contact { padding: 88px 40px; }
}

@media (max-width: 900px) {
  .contact { padding: 72px 24px; }
  .contact__glow { display: none; }
  .contact__row {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .contact__copy,
  .contact__form {
    flex: 0 0 auto;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }
  .contact__title { font-size: 34px; }
}

@media (max-width: 560px) {
  .contact { padding: 56px 16px; }
  .contact__title { font-size: 28px; }
  .contact__lead { font-size: 16px; }
  .contact__form { padding: 26px 20px; }
  .contact__form-title { white-space: normal; }
  .contact__input { height: 48px; }
  .contact__submit { height: 50px; font-size: 16px; }
  .contact__benefit-text { font-size: 15px; }
}
