/**
 * Public support forms — matches home landing (badge, pills, black/white, green accent).
 */

 .public-form-page {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.public-form-page__glow {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 100%);
  height: 320px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
}
html.dark .public-form-page__glow {
  display: block;
}

.public-form-page__inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}
@media (min-width: 1024px) {
  .public-form-page__inner {
    max-width: 80rem;
  }
}

/* Mobile: stacked centered | Desktop: equal side-by-side columns */
.public-form-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .public-form-page__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: center;
  }
}

.public-form-page__panel {
  width: 100%;
  min-width: 0;
}

/* Hero section — centered on mobile and desktop */
.public-form-page__hero {
  text-align: center;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 1024px) {
  .public-form-page__hero {
    justify-content: center;
    min-height: 100%;
    padding: 0 1rem;
  }
}

.public-form-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: var(--bk-slate-100);
  border: 1px solid var(--bk-slate-200);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
html.dark .public-form-page__badge {
  background: var(--bk-dark-surface);
  border-color: var(--bk-zinc-800);
}
.public-form-page__badge-dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--bk-green);
  animation: public-form-pulse 2s ease-in-out infinite;
}
@keyframes public-form-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.public-form-page__badge-label {
  color: var(--bk-slate-600);
}
html.dark .public-form-page__badge-label {
  color: var(--bk-zinc-300);
}

.public-form-page__hero-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.25rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bk-slate-100);
  border: 1px solid var(--bk-slate-200);
  font-size: 1.75rem;
  color: var(--bk-slate-900);
}
html.dark .public-form-page__hero-icon {
  background: var(--bk-dark-surface);
  border-color: var(--bk-zinc-800);
  color: #fff;
}
.public-form-page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--bk-slate-900);
  margin: 0 0 1rem;
}
html.dark .public-form-page__title {
  color: #fff;
}

.public-form-page__intro {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--bk-slate-600);
}
html.dark .public-form-page__intro {
  color: var(--bk-zinc-400);
}

.public-form-page__points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .public-form-page__points {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
  }
}

.public-form-page__points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--bk-slate-500);
}
.public-form-page__points li i {
  color: var(--bk-green);
  font-size: 1rem;
  flex-shrink: 0;
}
html.dark .public-form-page__points li {
  color: var(--bk-zinc-400);
}

/* Form panel — centered card */
.public-form-page__panel-card {
  background: var(--bk-white);
  border: 1px solid var(--bk-slate-200);
  border-radius: 2rem;
  padding: 1.5rem;
  box-shadow: var(--bk-shadow-soft-light);
}
@media (min-width: 640px) {
  .public-form-page__panel-card {
    padding: 2.5rem;
  }
}
html.dark .public-form-page__panel-card {
  background: #0c0c0e;
  border-color: rgba(39, 39, 42, 0.85);
  box-shadow: var(--bk-shadow-soft-dark);
}

.public-form-page__alert {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
  overflow: hidden;
}

.public-form-page__alert--hide {
  opacity: 0;
  transform: translateY(-4px);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}
.public-form-page__alert i {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.public-form-page__alert--success {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.public-form-page__alert--success i {
  color: var(--bk-green);
}
.public-form-page__alert--error {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.public-form-page__alert--warning {
  background: rgba(245, 158, 11, 0.1);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
html.dark .public-form-page__alert--success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.3);
}
html.dark .public-form-page__alert--error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
html.dark .public-form-page__alert--warning {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.3);
}

.public-form-page__form {
  display: flex;
  flex-direction: column;
}

.public-form-page__field {
  margin-bottom: 1rem;
}

.public-form-page__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bk-slate-700);
  margin-bottom: 0.7rem;
}
html.dark .public-form-page__label {
  color: var(--bk-zinc-300);
}

.public-form-page__optional {
  font-weight: 500;
  color: var(--bk-slate-400);
}
html.dark .public-form-page__optional {
  color: var(--bk-zinc-500);
}

.public-form-page__input,
.public-form-page__textarea,
.public-form-page__select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--bk-slate-900);
  background: var(--bk-slate-50);
  border: 1px solid var(--bk-slate-200);
  border-radius: 1rem;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
html.dark .public-form-page__input,
html.dark .public-form-page__textarea,
html.dark .public-form-page__select {
  color: #fafafa;
  background: var(--bk-dark-surface);
  border-color: var(--bk-zinc-800);
}

.public-form-page__input::placeholder,
.public-form-page__textarea::placeholder {
  color: var(--bk-slate-400);
}
html.dark .public-form-page__input::placeholder,
html.dark .public-form-page__textarea::placeholder {
  color: var(--bk-zinc-500);
}

.public-form-page__input:focus,
.public-form-page__textarea:focus,
.public-form-page__select:focus {
  border-color: var(--bk-slate-900);
  background: #fff;
  box-shadow: none;
  outline: none;
}
html.dark .public-form-page__input:focus,
html.dark .public-form-page__textarea:focus,
html.dark .public-form-page__select:focus {
  border-color: #fafafa;
  background: #0a0a0a;
  box-shadow: none;
  outline: none;
}

.public-form-page__textarea {
  resize: vertical;
  min-height: 6.5rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.public-form-page__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23737373' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.125rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Submit */
.public-form-page__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: 0.8rem;
  background: var(--bk-slate-900);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.public-form-page__submit:hover {
  transform: scale(1.01);
  opacity: 0.92;
}
html.dark .public-form-page__submit {
  background: #fff;
  color: #000;
  box-shadow: none;
}

.public-form-page__submit--danger {
  background: var(--bk-red);
  color: #fff;
}
.public-form-page__submit--danger:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}
html.dark .public-form-page__submit--danger {
  background: var(--bk-red);
  color: #fff;
}

/* File upload (same behavior as api/feedback.php) */
.public-form-page__file {
  width: 100%;
}

.public-form-page__file-zone {
  position: relative;
  border-radius: 0.75rem;
  background: var(--bk-slate-50);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
  min-height: 4.5rem;
}

.public-form-page__file-zone:not(.public-form-page__file-zone--has) {
  border: 1px dashed var(--bk-slate-300);
}

.public-form-page__file-zone--has,
.public-form-page__file--has .public-form-page__file-zone {
  border: 1px solid rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.06);
}

html.dark .public-form-page__file-zone {
  background: var(--bk-dark-surface);
}
html.dark .public-form-page__file-zone:not(.public-form-page__file-zone--has) {
  border-color: var(--bk-zinc-700);
}
html.dark .public-form-page__file-zone--has,
html.dark .public-form-page__file--has .public-form-page__file-zone {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
}

.public-form-page__file-zone:hover:not(.public-form-page__file-zone--has) {
  border-color: var(--bk-slate-400);
  background: var(--bk-slate-100);
}
html.dark .public-form-page__file-zone:hover:not(.public-form-page__file-zone--has) {
  border-color: var(--bk-zinc-500);
  background: var(--bk-zinc-900);
}

.public-form-page__file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.public-form-page__file-input::-webkit-file-upload-button {
  display: none;
}

.public-form-page__file-row {
  pointer-events: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  min-height: 4.5rem;
  box-sizing: border-box;
}

.public-form-page__file-empty[hidden],
.public-form-page__file-preview[hidden] {
  display: none !important;
}

.public-form-page__file-preview:not([hidden]) {
  display: flex;
}

.public-form-page__file-icon-wrap {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--bk-slate-100);
  border: 1px solid var(--bk-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bk-slate-700);
}
html.dark .public-form-page__file-icon-wrap {
  background: var(--bk-zinc-800);
  border-color: var(--bk-zinc-700);
  color: var(--bk-zinc-300);
}

.public-form-page__file-thumb-wrap {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bk-slate-200);
  border: 1px solid var(--bk-slate-200);
}
html.dark .public-form-page__file-thumb-wrap {
  background: var(--bk-zinc-800);
  border-color: var(--bk-zinc-700);
}

.public-form-page__file-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.public-form-page__file-thumb-wrap img.public-form-page__file-thumb--ready {
  opacity: 1;
}

.public-form-page__file-text {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.public-form-page__file-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bk-slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
html.dark .public-form-page__file-title {
  color: #fafafa;
}

.public-form-page__file-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--bk-slate-500);
  margin-top: 0.125rem;
  line-height: 1.3;
}
html.dark .public-form-page__file-sub {
  color: var(--bk-zinc-400);
}

.public-form-page__file-clear {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--bk-slate-600);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: background-color 0.2s ease, color 0.2s ease;
}
html.dark .public-form-page__file-clear {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bk-zinc-300);
}

.public-form-page__file--has .public-form-page__file-clear {
  display: flex;
}

.public-form-page__file-clear:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--bk-red);
}

.public-form-page__file-error {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bk-red);
  line-height: 1.4;
}

.public-form-page__file-error[hidden] {
  display: none;
}

html.dark .public-form-page__file-error {
  color: #fca5a5;
}
