/* /sorry, /zipfeed and the three legal pages. */

/* ------------------------------------------------------------------ /sorry */

.sorry-hero {
  min-height: 100vh;
  padding: 20px 20px 60px;
  text-align: center;
  background: var(--page-bg) url("/assets/back.jpeg") center bottom / cover no-repeat;
}

.sorry-logo { width: 270px; height: auto; margin: 0 auto; }

.sorry-face {
  margin-top: 42px;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
}

.sorry-title {
  margin-top: 14px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.sorry-note {
  max-width: 460px;
  margin: 14px auto 0;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}

/* ---------------------------------------------------------------- /zipfeed */

.zip-panel {
  max-width: 460px;
  margin: 36px auto 0;
  padding: 26px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
  text-align: left;
}

.zip-panel h1 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.zip-panel p {
  margin-top: 6px;
  font-size: 13px;
  color: #6b7280;
}

.zip-panel form {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.zip-panel input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--slate-700);
}

.zip-panel input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.zip-panel button {
  flex: none;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.zip-panel button:hover { background: var(--blue-dark); }

.zip-panel .zip-error {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
}

.zip-panel .zip-error[hidden] { display: none; }

/* ------------------------------------------------------------ legal pages */

.legal-hero {
  padding: 20px 20px 56px;
  background: var(--page-bg) url("/assets/back.jpeg") center bottom / cover no-repeat;
}

.legal-logo { width: 270px; height: auto; margin: 0 auto; }

.legal-body {
  max-width: 860px;
  margin: 36px auto 0;
  padding: 36px 40px 44px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .06);
}

.legal-body h1 {
  margin-bottom: 22px;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
}

.legal-body p {
  font-size: 15px;
  line-height: 1.75;
  color: #3f4652;
}

.legal-body a { color: var(--blue); text-decoration: underline; }

.contact-actions {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.8;
  color: #3f4652;
}

.contact-actions a { color: var(--blue); text-decoration: underline; }

@media (max-width: 767px) {
  .sorry-logo, .legal-logo { width: 210px; }
  .sorry-face  { margin-top: 30px; font-size: 30px; }
  .sorry-title { font-size: 19px; }

  .legal-body { margin-top: 24px; padding: 24px 20px 30px; border-radius: 16px; }
  .legal-body h1 { font-size: 24px; }
  .legal-body p  { font-size: 14px; }

  .zip-panel { padding: 20px; }
  .zip-panel form { flex-direction: column; }
  .zip-panel button { width: 100%; }
}

/* ------------------------------------------------------------ /contact form */

.contact-form {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--slate-700);
  background: #fff;
}

.contact-form textarea { resize: vertical; min-height: 110px; }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.contact-form .field-error {
  display: none;
  margin: -10px 0 14px;
  font-size: 12px;
  color: #dc2626;
}

.contact-form .field-error.show { display: block; }

.contact-form button {
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover:not(:disabled) { background: var(--blue-dark); }
.contact-form button:disabled { background: #cbd5e1; cursor: not-allowed; }

/* off-screen rather than display:none — bots skip hidden fields */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin-top: 14px; font-size: 14px; }
.form-status.ok      { color: #047857; }
.form-status.bad     { color: #dc2626; }
.form-status.pending { color: #6b7280; }
.form-status[hidden] { display: none; }
