/* Components for the public form. Logical properties keep English and Arabic layouts mirrored. */

.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 18px 16px 90px;
}

/* The line under every page that says who built it. */
.site-footer {
  padding: 0 16px 28px;
  color: var(--mute);
  font-size: var(--fs-help);
  text-align: center;
}
.site-footer a {
  color: inherit;
  font-weight: 700;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--sea);
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: var(--fs-label);
  font-weight: 700;
}
.icon-btn:hover {
  background: var(--sheet-2);
}
.icon {
  display: inline-flex;
  flex: none;
}

/* The sheet: hand-cut edges with a dashed map frame inside. */
.sheet {
  position: relative;
  background-color: var(--sheet);
  background-image:
    radial-gradient(120% 90% at 0% 0%, var(--stain-red), transparent 55%),
    radial-gradient(100% 80% at 100% 100%, var(--stain-sea), transparent 60%);
  padding: 38px 34px 34px;
  clip-path: polygon(
    0 7px,
    9px 0,
    calc(100% - 12px) 3px,
    100% 10px,
    calc(100% - 4px) calc(100% - 12px),
    calc(100% - 14px) 100%,
    8px calc(100% - 4px),
    0 calc(100% - 11px)
  );
  filter: drop-shadow(0 6px 14px var(--shadow));
}
.sheet::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1.5px dashed var(--line);
  pointer-events: none;
}
@media (max-width: 560px) {
  .sheet {
    padding: 30px 20px 26px;
  }
}
.wrap {
  position: relative;
  z-index: 1;
}

.form-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}
.form-icon {
  color: var(--accent);
}
.form-title {
  font-size: var(--fs-title);
  letter-spacing: 0.005em;
}
.tag {
  align-self: flex-start;
  display: inline-block;
  padding: 1px 12px 2px;
  border: 1.5px solid var(--accent);
  border-radius: 3px;
  color: var(--accent);
  font-family: var(--font-title);
  font-style: italic;
  font-size: var(--fs-tag);
}
:lang(ar) .tag {
  font-style: normal;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag.tag-subject {
  font-family: var(--font-code);
  font-style: normal;
  letter-spacing: 0.05em;
  border-color: var(--ink);
  color: var(--ink);
}
