/* ===== Shared Athar forms ===== */
:root {
  --athar-form-accent: #c56a1a;
  --athar-form-accent-2: #8b5a2b;
  --athar-form-ink: #2b2118;
  --athar-form-muted: #6d5c4d;
  --athar-form-line: rgba(139, 90, 43, 0.18);
  --athar-form-soft: #f7f1ea;
  --athar-form-ok: #1f7a4c;
  --athar-form-bad: #b42318;
  --athar-form-radius: 16px;
}

.athar-form,
.athar-auth-card__form,
.become-instructor__form.athar-form,
.contact-page__form.athar-form,
.article-sidebar__form.athar-form {
  width: 100%;
}

.athar-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  .athar-form__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.athar-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}

.athar-field--full {
  grid-column: 1 / -1;
}

.athar-field__label {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--athar-form-ink);
  letter-spacing: 0.01em;
}

.athar-field__control,
.athar-form input[type="text"],
.athar-form input[type="email"],
.athar-form input[type="password"],
.athar-form input[type="tel"]:not(.iti__tel-input),
.athar-form input[type="number"],
.athar-form input[type="file"],
.athar-form select,
.athar-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid var(--athar-form-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--athar-form-ink) !important;
  padding: 12px 16px !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.athar-form textarea,
.athar-field__control.athar-textarea {
  min-height: 120px;
  resize: vertical;
}

.athar-form input:focus,
.athar-form select:focus,
.athar-form textarea:focus,
.athar-field__control:focus {
  border-color: var(--athar-form-accent) !important;
  box-shadow: 0 0 0 4px rgba(197, 106, 26, 0.12) !important;
  background: #fffefb !important;
}

.athar-field__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--athar-form-muted);
}

.athar-field__error,
.athar-phone__feedback.is-invalid {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--athar-form-bad);
}

.athar-phone__feedback.is-valid {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--athar-form-ok);
}

.athar-phone__feedback:empty {
  display: none;
}

.athar-field__control.is-valid,
.athar-phone.is-valid .iti {
  --athar-phone-border: rgba(31, 122, 76, 0.45);
}

.athar-field__control.is-invalid,
.athar-phone.is-invalid .iti {
  --athar-phone-border: rgba(180, 35, 24, 0.45);
}

/* Phone widget: always LTR so flag + dial code never collide with digits */
.athar-phone__wrap,
.athar-phone__wrap * {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: isolate;
}

.athar-phone {
  width: 100%;
}

html[lang="ar"] .athar-phone__feedback,
html[lang="ar"] .athar-field__error {
  direction: rtl;
  text-align: right;
}

.athar-phone .iti {
  width: 100%;
  display: block;
  position: relative;
}

.athar-phone .iti__country-container {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: auto !important;
  z-index: 3;
}

.athar-phone .iti__selected-country {
  height: 100%;
  padding: 0 10px !important;
  background: transparent !important;
}

.athar-phone .iti__selected-country-primary {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.athar-phone .iti__selected-dial-code {
  margin: 0 !important;
  font-weight: 700;
  color: var(--athar-form-ink);
  white-space: nowrap;
}

.athar-phone .iti__tel-input,
.athar-phone input.js-phone-input.iti__tel-input {
  width: 100% !important;
  min-height: 52px !important;
  border: 1.5px solid var(--athar-phone-border, var(--athar-form-line)) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--athar-form-ink) !important;
  /* Leave room for flag + dial code on the left */
  padding: 12px 16px 12px 108px !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  outline: none !important;
  direction: ltr !important;
  text-align: left !important;
}

.athar-phone .iti--separate-dial-code .iti__tel-input,
.athar-phone .iti--separate-dial-code input.js-phone-input.iti__tel-input {
  padding-left: 118px !important;
  padding-right: 16px !important;
}

.athar-phone .iti__tel-input:focus {
  border-color: var(--athar-form-accent) !important;
  box-shadow: 0 0 0 4px rgba(197, 106, 26, 0.12) !important;
}

.athar-phone .iti__dropdown-content {
  z-index: 40;
  direction: ltr !important;
  text-align: left !important;
}

.athar-phone .iti__search-input {
  direction: ltr !important;
  text-align: left !important;
  padding: 10px 12px !important;
}

/* Beat theme form-one tel padding that collapses onto the flag */
.form-one .athar-phone .iti__tel-input,
.contact-page .form-one .athar-phone .iti__tel-input,
.become-instructor__form .athar-phone .iti__tel-input,
.article-sidebar__form .athar-phone .iti__tel-input {
  padding-left: 118px !important;
  padding-right: 16px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.athar-form__actions {
  margin-top: 6px;
}

.athar-form__btn,
.athar-form .eduhive-btn {
  width: 100%;
  justify-content: center;
  min-height: 54px;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--athar-form-accent) 0%, var(--athar-form-accent-2) 100%) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 28px rgba(139, 90, 43, 0.22);
}

.athar-form__btn:hover,
.athar-form .eduhive-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(139, 90, 43, 0.28);
}

.athar-form__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.athar-form__link {
  color: var(--athar-form-accent);
  font-weight: 700;
  text-decoration: none;
}

.athar-form__link:hover {
  text-decoration: underline;
}

/* Contact / admission containers */
.become-instructor__form-box,
.contact-page__form.athar-form {
  background: #fff;
  border: 1px solid var(--athar-form-line);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 18px 50px rgba(43, 33, 24, 0.08);
}

.become-instructor__form-box__title {
  margin-bottom: 18px !important;
}

.contact-page__form.athar-form {
  position: relative;
  overflow: hidden;
}

.contact-page__form.athar-form .contact-page__form__image {
  display: none;
}

.article-sidebar__form.athar-form .athar-field__control,
.article-sidebar__form.athar-form textarea {
  min-height: 46px;
  border-radius: 12px !important;
}

.article-sidebar__form.athar-form .athar-form__btn {
  min-height: 48px;
}

/* ===== Creative auth pages ===== */
.athar-auth {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(197, 106, 26, 0.14), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(139, 90, 43, 0.12), transparent 36%),
    linear-gradient(180deg, #fbf7f2 0%, #f3ebe2 100%);
}

.athar-auth::before {
  content: '';
  position: absolute;
  inset: auto -80px -120px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 106, 26, 0.16), transparent 68%);
  pointer-events: none;
}

.athar-auth__shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(139, 90, 43, 0.14);
  box-shadow: 0 30px 80px rgba(43, 33, 24, 0.12);
  backdrop-filter: blur(10px);
  min-height: 640px;
}

.athar-auth__visual {
  position: relative;
  min-height: 100%;
  background: #1f1712;
  overflow: hidden;
}

.athar-auth__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.02);
}

.athar-auth__visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 23, 18, 0.15) 0%, rgba(31, 23, 18, 0.72) 100%),
    linear-gradient(90deg, rgba(197, 106, 26, 0.18), transparent 55%);
}

.athar-auth__visual-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
  z-index: 2;
}

.athar-auth__visual-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
}

.athar-auth__visual-copy p {
  margin: 0;
  max-width: 34ch;
  opacity: 0.92;
  font-size: 0.98rem;
}

.athar-auth__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.athar-auth-card {
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #fffdf9 100%);
}

.athar-auth-card__logo {
  width: 148px;
  height: auto;
  margin-bottom: 18px;
}

.athar-auth-card__title {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  font-weight: 800;
  color: var(--athar-form-ink);
}

.athar-auth-card__subtitle {
  margin: 0 0 22px;
  color: var(--athar-form-muted);
  font-size: 0.95rem;
}

.athar-auth-card__form .athar-form__grid {
  gap: 12px;
}

.athar-auth-card__password {
  position: relative;
}

.athar-auth-card__password .toggle-password-icon {
  position: absolute;
  top: 50%;
  inset-inline-end: 14px;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--athar-form-muted);
  z-index: 2;
}

html[dir="rtl"] .athar-auth__shell,
html[lang="ar"] .athar-auth__shell {
  direction: rtl;
}

@media (max-width: 991px) {
  .athar-auth {
    padding: 28px 0 48px;
  }

  .athar-auth__shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .athar-auth__visual {
    min-height: 280px;
  }

  .athar-auth-card {
    padding: 28px 20px 32px;
  }
}

/* ===== Creative Admission page ===== */
.athar-admit {
  position: relative;
  padding: 40px 0 80px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fbf7f2 0%, #f1e7db 48%, #faf6f1 100%);
}

.athar-admit__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
}

.athar-admit__glow--a {
  width: 420px;
  height: 420px;
  top: -120px;
  inset-inline-start: -140px;
  background: radial-gradient(circle, rgba(197, 106, 26, 0.18), transparent 70%);
  animation: atharAdmitFloat 9s ease-in-out infinite;
}

.athar-admit__glow--b {
  width: 360px;
  height: 360px;
  bottom: -80px;
  inset-inline-end: -100px;
  background: radial-gradient(circle, rgba(139, 90, 43, 0.16), transparent 70%);
  animation: atharAdmitFloat 11s ease-in-out infinite reverse;
}

@keyframes atharAdmitFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

.athar-admit__intro {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.athar-admit__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(197, 106, 26, 0.1);
  border: 1px solid rgba(197, 106, 26, 0.2);
  color: #9a5414;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: atharAdmitFadeUp 0.7s ease both;
}

.athar-admit__headline {
  margin: 0 0 10px;
  color: var(--athar-form-ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  animation: atharAdmitFadeUp 0.8s ease 0.08s both;
}

.athar-admit__lead {
  margin: 0;
  color: var(--athar-form-muted);
  font-size: 1rem;
  line-height: 1.7;
  animation: atharAdmitFadeUp 0.85s ease 0.14s both;
}

@keyframes atharAdmitFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.athar-admit__layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.athar-admit__story {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.athar-admit__visual {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 320px;
  box-shadow: 0 24px 60px rgba(43, 33, 24, 0.14);
  animation: atharAdmitFadeUp 0.9s ease 0.16s both;
}

.athar-admit__visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transform: scale(1.03);
  transition: transform 1.2s ease;
}

.athar-admit__visual:hover img {
  transform: scale(1.07);
}

.athar-admit__visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(31, 23, 18, 0.08) 20%, rgba(31, 23, 18, 0.72) 100%),
    linear-gradient(90deg, rgba(197, 106, 26, 0.2), transparent 55%);
}

.athar-admit__visual-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.athar-admit__visual-caption strong {
  font-size: 1.25rem;
  font-weight: 800;
}

.athar-admit__visual-caption span {
  opacity: 0.9;
  font-size: 0.92rem;
}

.athar-admit__cards {
  display: grid;
  gap: 14px;
}

.athar-admit__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(139, 90, 43, 0.14);
  box-shadow: 0 12px 32px rgba(43, 33, 24, 0.06);
  backdrop-filter: blur(8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.athar-admit__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(43, 33, 24, 0.1);
}

.athar-admit__card--1 { animation: atharAdmitFadeUp 0.8s ease 0.22s both; }
.athar-admit__card--2 { animation: atharAdmitFadeUp 0.8s ease 0.32s both; }
.athar-admit__card--3 { animation: atharAdmitFadeUp 0.8s ease 0.42s both; }

.athar-admit__card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c56a1a, #8b5a2b);
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.athar-admit__card h4 {
  margin: 0 0 8px;
  color: var(--athar-form-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.athar-admit__card-body,
.athar-admit__card-body p,
.athar-admit__card-body li {
  color: var(--athar-form-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.athar-admit__card-body ul {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.athar-admit__card-body li + li {
  margin-top: 4px;
}

.athar-admit__panel {
  position: sticky;
  top: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
  border: 1px solid rgba(139, 90, 43, 0.14);
  box-shadow: 0 28px 70px rgba(43, 33, 24, 0.12);
  padding: 26px 24px 28px;
  animation: atharAdmitFadeUp 0.9s ease 0.2s both;
}

.athar-admit__panel-head {
  margin-bottom: 18px;
}

.athar-admit__panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(197, 106, 26, 0.1);
  color: #9a5414;
  font-size: 0.78rem;
  font-weight: 800;
}

.athar-admit__panel-head h3 {
  margin: 0 0 6px;
  color: var(--athar-form-ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.athar-admit__panel-head p {
  margin: 0;
  color: var(--athar-form-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.athar-admit__form .athar-form__grid--2 {
  gap: 12px;
}

@media (max-width: 991px) {
  .athar-admit {
    padding: 28px 0 56px;
  }

  .athar-admit__layout {
    grid-template-columns: 1fr;
  }

  .athar-admit__panel {
    position: static;
  }

  .athar-admit__visual,
  .athar-admit__visual img {
    min-height: 240px;
  }
}
