/* Cohesive, accessible form controls across auth, checkout, reviews and admin. */
#root form label {
  color: #65483e;
  font-weight: 800;
  line-height: 1.65;
}

#root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
#root textarea,
#root select {
  min-width: 0;
  min-height: 50px;
  padding: 12px 17px;
  border: 1px solid #dec8bd;
  border-radius: 15px;
  background-color: #fffdfb;
  color: #44332e;
  font-family: Almarai, Tajawal, sans-serif;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.7;
  box-shadow: inset 0 1px 2px rgba(79, 47, 34, .025),
              0 5px 16px rgba(92, 54, 40, .045);
  transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}

#root form label > input:not([type="checkbox"]):not([type="radio"]),
#root form label > select,
#root form label > textarea {
  width: 100%;
  margin-top: 9px;
}

#root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):hover:not(:disabled),
#root textarea:hover:not(:disabled),
#root select:hover:not(:disabled) {
  border-color: #c9a595;
  background-color: #fffaf7;
}

#root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus-visible,
#root textarea:focus-visible,
#root select:focus-visible,
#root input[type="file"]:focus-visible {
  outline: 2px solid #a86f5e;
  outline-offset: 2px;
  border-color: #aa7665;
  background-color: #fff;
  box-shadow: 0 0 0 5px rgba(179, 119, 99, .14),
              0 9px 22px rgba(91, 53, 40, .10);
}

#root input::placeholder,
#root textarea::placeholder {
  color: #9d8880;
  opacity: 1;
  font-weight: 400;
}

#root textarea {
  min-height: 135px;
  padding-block: 14px;
  resize: vertical;
  line-height: 1.95;
}

#root select {
  appearance: none;
  padding-left: 45px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='10' viewBox='0 0 15 10'%3E%3Cpath d='m1.5 2 6 6 6-6' fill='none' stroke='%23936a5d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 17px center;
  cursor: pointer;
}

#root select option { color: #44332e; background: #fffdfb; }

#root input[readonly]:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]) {
  background-color: #f6eee9;
  color: #705b53;
  border-color: #e5d6cd;
  box-shadow: none;
  cursor: default;
}

#root input:disabled:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
#root textarea:disabled,
#root select:disabled {
  background-color: #f4efeb;
  color: #8b7b72;
  box-shadow: none;
}

#root input[type="file"] {
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1.5px dashed #cba99a;
  border-radius: 15px;
  background: #fffaf7;
  color: #75574a;
  font-size: .84rem;
  line-height: 1.8;
  cursor: pointer;
}

#root input[type="file"]::file-selector-button {
  margin-inline-end: 12px;
  padding: 9px 15px;
  border: 1px solid #b98775;
  border-radius: 999px;
  background: #f3e2d9;
  color: #73483d;
  font: 800 .84rem Almarai, Tajawal, sans-serif;
  cursor: pointer;
  transition: background-color .2s ease;
}

#root input[type="file"]:hover::file-selector-button { background: #ecd1c4; }

#root input:-webkit-autofill {
  -webkit-text-fill-color: #44332e;
  -webkit-box-shadow: 0 0 0 1000px #fffdfb inset;
}

.course-card-body h3 {
  color: #603b32;
  font-family: "Noto Kufi Arabic", Tajawal, sans-serif;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  text-wrap: balance;
}

@media (max-width: 620px) {
  #root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
  #root select,
  #root textarea { font-size: 16px; }
  #root input[type="file"]::file-selector-button { margin-inline-end: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  #root input,
  #root textarea,
  #root select,
  #root input[type="file"]::file-selector-button { transition: none; }
}
