/* Public school-onboarding request page. Persian-only launch surface. */

.reg-body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: #102a43;
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(44, 177, 163, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 10%, rgba(16, 70, 90, 0.08), transparent 50%),
    linear-gradient(180deg, #f3faf8 0%, #f7fbfd 42%, #eef4f8 100%);
}

.reg-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(20, 80, 70, 0.08);
  backdrop-filter: blur(14px);
}

.reg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.reg-brand:hover { text-decoration: none; }

.reg-brand img {
  width: 44px;
  height: 44px;
  padding: 5px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2eee9;
  object-fit: contain;
}

.reg-brand b {
  display: block;
  font-size: 18px;
  color: #0d3b4a;
}

.reg-brand small {
  display: block;
  font-size: 11px;
  color: #6b7c8f;
}

.reg-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reg-main {
  padding: 28px 24px 56px;
}

.reg-hero {
  width: min(920px, 100%);
  margin: 0 auto 36px;
  text-align: center;
  animation: reg-rise 700ms ease both;
}

.reg-brand-hero {
  margin: 0 0 10px;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0d3b4a;
  background: linear-gradient(120deg, #0d3b4a 20%, #1f8f7d 70%, #2cb1a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.reg-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 800;
  color: #173451;
  text-wrap: balance;
}

.reg-hero-lede {
  margin: 0 auto;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.9;
  color: #5a6f82;
  text-wrap: pretty;
}

.reg-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
  width: min(1080px, 100%);
  margin-inline: auto;
}

.reg-aside {
  display: grid;
  gap: 16px;
  animation: reg-rise 800ms ease both;
  animation-delay: 60ms;
}

.reg-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.reg-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(20, 80, 70, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.reg-steps li > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(145deg, #e2f5f0, #f7fcfa);
  border: 1px solid #d9eee8;
  color: #1f7f6d;
  font-size: 13px;
  font-weight: 900;
}

.reg-steps b {
  display: block;
  font-size: 13.5px;
  color: #173451;
}

.reg-steps small {
  display: block;
  font-size: 11.5px;
  color: #6b7c8f;
}

.reg-assure {
  padding: 16px 18px;
  border: 1px solid #d9eee8;
  border-radius: 16px;
  background: #f5fbf9;
}

.reg-assure b {
  display: block;
  font-size: 13.5px;
  color: #1f7f6d;
  margin-bottom: 5px;
}

.reg-assure p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: #4a6a63;
}

.reg-form-wrap {
  position: relative;
  animation: reg-rise 850ms ease both;
  animation-delay: 100ms;
}

.reg-form {
  padding: 28px 26px 24px;
  background: #fff;
  border: 1px solid rgba(20, 80, 70, 0.1);
  border-radius: 24px;
  box-shadow: 0 40px 90px -50px rgba(11, 35, 66, 0.4);
}

.reg-form h2 {
  margin: 0 0 5px;
  font-size: 19px;
  font-weight: 800;
  color: #0d3b4a;
}

.reg-form-lede {
  margin: 0 0 20px;
  font-size: 12.5px;
  color: #6b7c8f;
}

.reg-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.reg-fields .span-2 { grid-column: 1 / -1; }
.reg-fields .field > span i { color: #c04a4a; font-style: normal; }

.reg-fields textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  background: #f9fbfc;
  outline: none;
  resize: vertical;
  line-height: 1.8;
  transition: 0.18s;
}

.reg-fields textarea:focus {
  border-color: #2cb1a3;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 158, 140, 0.12);
}

.reg-fields input[aria-invalid="true"],
.reg-fields textarea[aria-invalid="true"] {
  border-color: #e9b3b3;
  background: #fdf7f7;
}

.field-error {
  font-size: 11px;
  color: #c04a4a;
  font-weight: 700;
}

.reg-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.reg-consent {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.8;
  color: #93a1b1;
  text-align: center;
}

.reg-success {
  padding: 40px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid #d9eee8;
  border-radius: 24px;
  box-shadow: 0 40px 90px -50px rgba(11, 35, 66, 0.4);
}

.reg-success-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, #e2f5f0, #f7fcfa);
  border: 1px solid #d9eee8;
  color: #1f7f6d;
  font-size: 28px;
  font-weight: 900;
}

.reg-success h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #0d3b4a;
}

.reg-success > p {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: #6b7c8f;
}

.reg-success .kv {
  max-width: 330px;
  margin: 0 auto 22px;
  text-align: right;
}

.reg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px 28px;
  border-top: 1px solid rgba(20, 80, 70, 0.08);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  color: #6b7c8f;
}

.reg-footer nav {
  display: flex;
  gap: 18px;
}

.reg-footer a {
  color: #1f7f6d;
  text-decoration: none;
  font-weight: 700;
}

@keyframes reg-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 940px) {
  .reg-grid { grid-template-columns: 1fr; gap: 22px; }
  .reg-main { padding: 22px 16px 44px; }
  .reg-header { padding: 12px 16px; }
}

@media (max-width: 560px) {
  .reg-fields { grid-template-columns: 1fr; }
  .reg-form { padding: 22px 16px 18px; border-radius: 20px; }
  .reg-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.register-after-submit {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
  box-sizing: border-box;
}

.register-home-link {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  box-sizing: border-box;
  border: 1px solid rgba(20, 139, 121, 0.25);
  border-radius: 12px;
  background: rgba(20, 139, 121, 0.06);
  color: #117d6d;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.register-home-link:hover {
  background: rgba(20, 139, 121, 0.12);
  border-color: rgba(20, 139, 121, 0.42);
  color: #0a6659;
  transform: translateY(-1px);
}

.register-company-credit {
  width: 100%;
  margin: 0;
  padding: 2px 8px 0;
  color: #758399;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.9;
  text-align: center;
}

.register-company-credit a {
  color: #117d6d;
  font-weight: 800;
  text-decoration: none;
}

.register-company-credit a:hover {
  color: #0a6659;
  text-decoration: underline;
}

form textarea,
textarea[name="description"],
textarea[name="notes"],
textarea[name="short_description"] {
  width: 100%;
  max-width: 100%;
  min-height: 112px;
  padding: 13px 15px;
  box-sizing: border-box;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
  font-size: 0.94rem !important;
  font-weight: 500;
  line-height: 2;
  direction: rtl;
  text-align: right;
  overflow-wrap: anywhere;
  resize: vertical;
}

form textarea::placeholder {
  color: #98a4b5;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
  font-size: 0.88rem;
  opacity: 1;
}

form,
form fieldset,
form label,
form input,
form select,
form textarea,
form button {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.school-logo-field input[type="file"] {
  width: 100%;
  min-height: 50px;
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #d9e4ec;
  border-radius: 12px;
  background: #f9fbfc;
  color: #173451;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size: 0.86rem;
  cursor: pointer;
}

.school-logo-field input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-inline-end: 10px;
  padding: 6px 14px;
  border: 0;
  border-radius: 9px;
  background: #e7f6f2;
  color: #117d6d;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.school-logo-help {
  display: block;
  margin-top: 6px;
  color: #7a8899;
  font-size: 0.75rem;
  line-height: 1.8;
}

.school-logo-preview {
  width: 96px;
  height: 96px;
  display: block;
  margin: 12px auto 0;
  padding: 6px;
  box-sizing: border-box;
  border: 1px solid #d8e8e4;
  border-radius: 18px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(23, 52, 81, 0.08);
}

.school-logo-preview[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .school-logo-field input[type="file"] {
    min-height: 50px;
    font-size: 16px;
  }

  form textarea {
    min-height: 108px;
    font-size: 16px !important;
  }
}
