@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&display=swap');
/* ----------------------------------------
   Base reset (light, non-invasive)
----------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  color: #111;
  background-color: #EDDACA;
}
body.public-page {
  background-color: #A50000;
  color: #fff;
}
body.secondary-page {
  background-color: #A50000;
  color: #fff;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
}
p {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: #231F20;
  line-height: 1.5rem;
}
p strong, ul strong, ol strong {
  color: #872733;
  font-weight: 600;
}
a {
  color: #872733;
  font-weight: 600;
}
label {
  display: block;
  font-weight: 300;
  color: #231F20;
  font-size: 14px;
  font-weight: 400;
}
small {
  display: block;
  font-weight: 400;
  color: #666;
}
input, button {
  font-family: inherit;
  font-size: 1rem;
}
input[type="text"], input[type="email"], input[type="file"], textarea {
  width: 100%;
  padding: 1.5rem 1.5rem;
  border: 1px solid #231F20;
  background-color: #EDDACA;
  font-size: 14px;
  color: #231F20;
  transition: all ease-in-out 200ms;
}
input[type="text"], input[type="email"], textarea, .file-box {
  margin-bottom: 0;
}
input[type="file"] {
  padding: 0.4rem 0;
}
input::placeholder {
  font-family: 'Open Sans', sans-serif;
  color: #231F20;
  font-weight: 300;
}
input::required {
  color: #231F20;
  font-weight: 300;
}
button {
  padding: 14px 40px;
  border: 0;
  background: #872733;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 15px;
  margin-top: 15px;
  border-radius: 3px;
}
button:hover {
  opacity: 0.9;
}
button, th {
  font-weight: 600;
}
#main-form button:disabled,
#main-form button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ----------------------------------------
   Container (Bootstrap-style)
----------------------------------------- */
.container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  padding-left: 20px;
  padding-right: 20px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 70px;
  padding: 40px 0 0;
}
.site-header-logo {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}
.site-header-logo img {
  display: block;
  width: auto;
  height: 40px;
  max-height: none;
  object-fit: contain;
  object-position: left center;
}
.site-header-link {
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Open Sans', sans-serif;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 50px;
  position: relative;
  white-space: nowrap;
  text-shadow: 0px 0px 10px rgba(0,0,0,0.2), 2px 2px 0px rgba(0,0,0,0.15);
  transition: opacity 0.2s ease;
}
.site-header-link:hover,
.site-header-link:focus-visible {
  opacity: 0.8;
}
.admin-page {
  max-width: 1440px !important; 
}
.is-hidden {
  display: none;
}
.section {
  margin-bottom: 40px;
}
.section-logo {
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero {
  width: 100%;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.hero-title {
  margin-bottom: 0;
}
.hero img {
  width: 100%;
  height: auto;
  display: block;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.title {
  color: #872733;
  font-size: 3rem;
  line-height: 3rem;
  letter-spacing: .5rem;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 40px;
}
.title_alt {
  color: #872733;
  font-size: 2rem;
  line-height: 2rem;
  letter-spacing: .5rem;
  text-transform: uppercase;
  font-family: 'Open Sans', sans-serif;
  margin-bottom: 40px;
}
.legal-box {
  margin-top: 40px;
  padding: 15px 20px;
  border: 1px solid #872733;
  color: #444;
  width: 385px;
}
.site-footer {
  margin-top: 120px;
  width: 100%;
  background-color: #E51B15;
  background-image: url('../images/footer_bg.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 60px 20px;
  overflow: hidden;
}
.site-footer-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.site-footer-logo {
  width: 100%;
  max-width: 335px;
}
.site-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 30px;
}
.site-footer-link {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}
.site-footer-link:hover,
.site-footer-link:focus-visible {
  opacity: 0.8;
}

/* ----------------------------------------
   Public landing page
----------------------------------------- */
body.public-page .preloader {
  background: #A50000;
}
body.secondary-page .preloader {
  background: #A50000;
}
body.public-page .section {
  margin-bottom: 0;
}
body.public-page .site-header {
  margin-bottom: 48px;
}
body.public-page .site-footer {
  margin-top: 140px;
}
body.public-page .public-intro {
  padding: 18px 0 100px;
}
body.public-page .public-title {
  margin: 0 auto;
  max-width: 900px;
  color: #fff;
  text-align: center;
  font-family: 'Open Sans', sans-serif;
  font-size: 6vmin;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
}
body.public-page .public-form {
  width: 100%;
}
body.public-page .public-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 650px);
  gap: 20px;
  align-items: stretch;
}
body.public-page .public-upload-panel,
body.public-page .public-fields {
  min-width: 0;
}
body.public-page .public-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
body.public-page .public-fields .input {
  margin: 0;
}
body.public-page .public-upload-panel .input {
  height: 100%;
}
body.public-page .photo-field {
  height: 100%;
}
body.public-page .file-box {
  min-height: 530px;
  height: 100%;
  padding: 32px;
  border: 2px dashed #FF7374;
  border-radius: 28px;
  background: transparent;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    color 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
body.public-page .file-box.is-dragover,
body.public-page #photo-label.is-dragover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}
body.public-page .file-box:hover,
body.public-page .file-box:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}
body.public-page .file-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
}
body.public-page .file-placeholder {
  display: none;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
  overflow-wrap: anywhere;
}
body.public-page .file-status {
  margin: 0;
  width: auto;
  min-width: 230px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.public-page .file-status:hover {
  background: transparent;
}
body.public-page .photo-field.is-filled .file-status {
  width: 100%;
  min-width: 0;
  gap: 10px;
}
body.public-page .file-box:hover .file-note,
body.public-page .file-box:focus-visible .file-note,
body.public-page .file-box.is-dragover .file-note,
body.public-page #photo-label.is-dragover .file-note {
  background: #E51B15;
  border-color: #E51B15;
}
body.public-page .file-note {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #A50000;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color 0.24s ease,
    color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease;
}
body.public-page .file-note-label {
  display: inline-block;
}
body.public-page .file-note-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
body.public-page .file-note-subtext {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
body.public-page .file-note-meta {
  display: block;
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.35;
}
body.public-page .photo-field.is-filled .file-placeholder {
  display: block;
}
body.public-page .photo-field.is-filled .file-note,
body.public-page .photo-field.is-filled .file-note-subtext {
  display: none;
}
body.public-page .file-remove {
  display: none;
  margin-top: 10px  ;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
body.public-page .photo-field.is-filled .file-remove {
  display: inline-block;
}
body.public-page input[type="text"],
body.public-page input[type="email"],
body.public-page textarea {
  height: 52px;
  padding: 0 22px;
  border: 2px solid #FF7374;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}
body.public-page input::placeholder {
  font-family: 'Open Sans', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}
body.public-page textarea::placeholder {
  font-family: 'Open Sans', sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}
body.public-page input[type="text"]:focus,
body.public-page input[type="email"]:focus,
body.public-page textarea:focus {
  outline: none;
  border-color: #fff;
  box-shadow: none;
}
body.public-page .public-fields {
  height: 100%;
}
body.public-page .public-fields-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
body.public-page .input-textarea {
  flex: 1 1 auto;
  min-height: 0;
}
body.public-page textarea {
  display: block;
  min-height: 180px;
  height: 100%;
  padding: 18px 22px;
  border-radius: 28px;
  resize: vertical;
  line-height: 1.45;
}
body.public-page .consent {
  gap: 14px;
  margin-bottom: 0;
}
body.public-page .consent input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #fff;
}
body.public-page .consent label,
body.public-page .consent label a {
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}
body.public-page .consent label a {
  font-weight: 500;
  text-decoration: underline;
}
body.public-page button[type="submit"] {
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition:
    background-color 0.24s ease,
    color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease;
}
body.public-page button[type="submit"]::after {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url('../images/ico_next.svg') center / contain no-repeat;
  filter: brightness(0) saturate(100%) invert(19%) sepia(97%) saturate(5210%) hue-rotate(2deg) brightness(97%) contrast(106%);
  transition: filter 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
body.public-page button[type="submit"]:hover {
  opacity: 1;
  background: #E51B15;
  color: #fff;
  border-color: #E51B15;
  box-shadow: none;
}
body.public-page button[type="submit"]:hover::after,
body.public-page button[type="submit"]:focus-visible::after,
body.public-page button[type="submit"]:active::after {
  filter: brightness(0) saturate(100%) invert(100%);
}
body.public-page button[type="submit"]:focus-visible {
  outline: none;
}
body.public-page button[type="submit"]:focus-visible,
body.public-page button[type="submit"]:active {
  background: #E51B15;
  color: #fff;
  border-color: #E51B15;
}
body.public-page .error-message,
body.public-page #result {
  color: #fff;
  font-size: 13px;
}
body.public-page .has-error input[type="text"],
body.public-page .has-error input[type="email"],
body.public-page .has-error textarea,
body.public-page .has-error .file-box {
  border-color: #fff;
}
body.public-page .form-stage {
  min-height: 560px;
}
body.public-page .success-panel {
  justify-content: center;
  gap: 24px;
}
body.public-page .success-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
}
body.public-page .success-icon::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 19px;
  width: 17px;
  height: 30px;
  border-right: 4px solid #E51B15;
  border-bottom: 4px solid #E51B15;
  transform: rotate(45deg);
}
body.public-page .success-text,
body.public-page .success-repeat,
body.public-page .success-repeat a {
  color: #fff;
}
body.public-page .success-text {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 700;
}
body.public-page .success-repeat {
  margin: 0;
  font-size: 16px;
}
body.public-page .success-repeat a {
  font-weight: 600;
}

/* ----------------------------------------
   Secondary pages
----------------------------------------- */
body.secondary-page .site-header {
  margin-bottom: 52px;
}
body.secondary-page .title_alt {
  margin: 0 0 16px;
  color: #fff;
  font-size: 50px;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 700;
}
body.secondary-page > .container > h2:first-of-type {
  max-width: 900px;
  margin: 0 0 40px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
}
body.secondary-page .section-privacy {
  margin-bottom: 0;
}
body.secondary-page .section-privacy .privacy-content {
  max-width: 1040px;
  margin: 0;
}
body.secondary-page .section-privacy h2,
body.secondary-page .section-privacy h4,
body.secondary-page .section-privacy p,
body.secondary-page .section-privacy li,
body.secondary-page .section-privacy a,
body.secondary-page .section-privacy strong,
body.secondary-page .section-privacy em {
  color: #fff;
}
body.secondary-page .section-privacy h2 {
  margin-top: 56px;
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
}
body.secondary-page .section-privacy h4 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}
body.secondary-page .section-privacy p,
body.secondary-page .section-privacy li {
  font-size: 16px;
  line-height: 1.65;
}
body.secondary-page .section-privacy p {
  margin-bottom: 16px;
}
body.secondary-page .section-privacy a {
  text-decoration: underline;
  font-weight: 600;
}
body.secondary-page .privacy-list,
body.secondary-page .privacy-list-ol {
  margin-bottom: 22px;
}
body.secondary-page .privacy-list li::before {
  background-color: #fff;
}
body.secondary-page .admin-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
body.secondary-page .admin-table,
body.secondary-page .admin-table th,
body.secondary-page .admin-table td {
  background: transparent;
  color: #fff;
}
body.secondary-page .admin-table thead th {
  background: rgba(165, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
body.secondary-page .admin-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.05);
}
body.secondary-page .admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.1);
}
body.secondary-page .admin-table a {
  color: #fff;
}
body.secondary-page .site-footer {
  margin-top: 140px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.file-input {
  display: none;
}
.file-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 1.5rem;
  border: 1px solid #231F20;
  background-color: #EDDACA;
  min-height: 135px;
}
.file-text {
  min-width: 0;
  display: contents;
}
.file-placeholder {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #231F20;
  max-width: 100px;
}
.file-note {
  display: block;
  font-weight: 600;
  font-size: 12px;
}
.file-status {
  display: block;
  margin-left: 20px;
  border: 2px dashed;
  padding: 20px 40px;
  border-radius: 3px;
  border-color: rgba(135, 39, 51, 0.4);
  color: #872733;
  transition: all ease-in-out 100ms;
  width: 65%;
  text-align: center;
  cursor: pointer;
}
.file-status:hover {
  border-color: rgba(135, 39, 51, 0);
  color: #872733;
  transition: all ease-in-out 100ms;
  background-color: rgba(135, 39, 51, 0.2);
}
.file-remove {
  font-size: 12px;
  font-weight: 600;
  color: #872733;
  cursor: pointer;
  white-space: nowrap;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.consent input[type="checkbox"] {
  transform: scale(1.35);
  transform-origin: top left;
  margin-top: 2px;
  accent-color: #872733;
}
.consent label {
  font-size: 14px;
}
.admin-login-form {
  max-width: 420px;
}

.admin-login-error {
  margin-bottom: 15px;
}
/* ----------------------------------------
   Focus states
----------------------------------------- */
input[type="text"]:focus, input[type="email"]:focus {
  outline: none;
  border-color: #872733;
  -webkit-box-shadow: inset 0px 0px 0px 4px #872733;
  box-shadow: inset 0px 0px 0px 4px #872733;
  transition: all ease-in-out 200ms;
}
/* ----------------------------------------
   Validation errors
----------------------------------------- */
.error-message {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  color: #806936;
  margin-top: 0;
  margin-bottom: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    margin 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.has-error .error-message,
.error-message:not(:empty) {
  max-height: 60px;
  opacity: 1;
  margin-top: 5px;
    transform: translateY(0);
}
.has-error input[type="text"], .has-error input[type="email"], .has-error .file-box {
  border-color: #872733;
}
/* --- Success overlay --- */
.form-stage {
  position: relative;
  width: 100%;
  min-height: 360px; /* ensures stable height while form fades out */
}
#main-form {
  transition: opacity 300ms ease;
}
.form-stage.is-success #main-form {
  opacity: 0;
  pointer-events: none;
}
.success-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.form-stage.is-success .success-panel {
  opacity: 1;
  pointer-events: auto;
}
.success-icon {
  width: 60px;
  height: 60px;
  display: block;
  margin-bottom: 20px;
}
.success-text {
  font-size: 20px;
  line-height: 1.25;
}
.success-id {
  font-size: 14px;
  margin: 20px 0;
}
.success-id span {
  color: #872733;
  font-weight: 600;
}
.success-repeat {
  font-size: 14px;
  margin: 20px 0;
}
.success-repeat a {
  color: #872733;
  font-weight: 600;
}
.success-repeat a:hover {
  text-decoration: underline;
}
.error-content {
  text-align: center;
}

.error-content p {
  margin-bottom: 15px;
}
/* ----------------------------------------
   Privacy Page
----------------------------------------- */
.section-privacy .privacy-content {
  max-width: 1440px;
  margin: 0 auto;
}
.section-privacy h2 {
  font-size: 18px;
  margin-top: 40px;
  margin-bottom: 10px;
}
.section-privacy p {
  margin-bottom: 15px;
}
.privacy-list {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 20px;
}
.privacy-list-ol {
  list-style: lower-latin;
  padding-left: 32px;
  margin-bottom: 20px;
}
.privacy-list li, .privacy-list-ol li {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.privacy-list-ol li {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  position: relative;
  padding-left: 6px;
  margin-bottom: 8px;
}
.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background-color: #872733;
  border-radius: 50%;
}
.privacy-contact {
  margin-top: 60px;
}
.privacy-back {
  margin-top: 20px;
}
/* ----------------------------------------
   Admin / Download page
----------------------------------------- */
.logo--small {
  max-width: 360px;
  height: auto;
}
/* ----------------------------------------
   Responsive padding
----------------------------------------- */
@media (min-width: 576px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 768px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
  .section {
    margin-bottom: 60px;
  }
  .legal-box {
    width: max-content;
  }
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  body.public-page .public-form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 48%);
  }
}
@media (min-width: 1200px) {
  .container {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 767px) {
  .site-header {
    gap: 16px;
    margin-bottom: 48px;
    padding-top: 13px;
  }
  .site-header-logo img {
    width: min(80svw, 100%);
    max-width: 300px;
    max-height: none;
  }
  .site-header-link {
    font-size: 14px;
  }
  body.public-page .site-header {
    margin-bottom: 36px;
  }
  body.public-page .public-intro {
    padding: 8px 0 40px;
  }
  body.public-page .public-title {
    font-size: 40px;
    line-height: 0.96;
  }
  body.public-page .public-form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  body.public-page .public-fields {
    gap: 20px;
  }
  body.public-page .file-box {
    min-height: 340px;
    padding: 20px;
    border-radius: 24px;
  }
  body.public-page .file-note {
    padding: 12px 22px;
    font-size: 15px;
  }
  body.public-page input[type="text"],
  body.public-page input[type="email"] {
    height: 50px;
    font-size: 15px;
  }
  body.public-page .public-fields-row {
    grid-template-columns: 1fr;
  }
  body.public-page textarea {
    min-height: 180px;
  }
  body.public-page .consent label,
  body.public-page .consent label a {
    font-size: 14px;
  }
  body.public-page button[type="submit"] {
    height: 54px;
    font-size: 17px;
  }
  body.public-page .form-stage {
    min-height: 0;
  }
  body.public-page .site-footer {
    margin-top: 96px;
  }
  body.secondary-page .title_alt {
    font-size: 34px;
  }
  body.secondary-page > .container > h2:first-of-type {
    margin-bottom: 28px;
    font-size: 16px;
  }
  body.secondary-page .section-privacy h2 {
    margin-top: 40px;
    font-size: 24px;
  }
  body.secondary-page .section-privacy p,
  body.secondary-page .section-privacy li {
    font-size: 15px;
    line-height: 1.6;
  }
  body.secondary-page .site-footer {
    margin-top: 96px;
  }
  /* Make legal box never force overflow */
  .legal-box {
    width: 100%;
    max-width: 100%;
  }
  .legal-box p, .legal-box a {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  /* Allow the note inside the file box to wrap */
  .file-note {
    text-align: center;
    font-size: 12px;
  }
  .file-status {
    padding: 30px 20px;
    border-radius: 3px;
    width: 100%;
    margin: 20px 0 0;
  }
  /* Optional: also allow long filenames to wrap on mobile */
  .file-placeholder {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    word-break: break-word;
  }
  /* Since it can wrap now, stop using display: contents on mobile */
  .file-text {
    display: block;
  }
  .breakthis {
    display: none;
  }
  #main-form button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
  }
  .site-footer {
    margin-top: 80px;
    padding: 48px 20px;
  }
  .site-footer-links {
    gap: 16px 24px;
  }
  input[type="text"], input[type="email"], input[type="file"] {
    font-size: 14px;
    color: #231F20;
  }
  .file-placeholder {
    font-size: 14px;
    color: #231F20;
    max-width: none;
  }
  .file-box {
    display: block;
  }
  .success-panel {
    justify-content: center;
  }
  .admin-table th, .admin-table td {
    padding: 10px;
    font-size: 11px;
  }
.title {
  font-size: 2rem;
  line-height: 2rem;
	margin-bottom: 0;
}
}
/* Admin table polish */
.admin-table-wrap {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #C5B5A8;
  background: #EDDACA;
}

/* nicer scrollbar (webkit only) */
.admin-table-wrap::-webkit-scrollbar {
  height: 10px;
}
.admin-table-wrap::-webkit-scrollbar-track {
  background: rgba(35, 31, 32, 0.08);
}
.admin-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(135, 39, 51, 0.45);
  border-radius: 8px;
}
.admin-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(135, 39, 51, 0.6);
}
.admin-table {
  width: 100%;
  min-width: 920px;
  max-width: none;
  border-collapse: separate;
  border-spacing: 0;
  background: #EDDACA;
  letter-spacing: -.02px;
}
.admin-table th, .admin-table td {
  padding: 10px 12px; /* tighter spacing */
  font-size: 12px;
  vertical-align: top;
  text-align: left;
}
.admin-table th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: #EDDACA;
}
/* sticky table header */
.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #EDDACA; /* MUST be opaque */
  border-bottom: 1px solid #C5B5A8;
}
/* zebra rows */
.admin-table tbody tr:nth-child(even) td {
  background: rgba(35, 31, 32, 0.03);
}
/* hover row */
.admin-table tbody tr:hover td {
  background: rgba(135, 39, 51, 0.05);
}
/* make links clearer */
.admin-table a {
  color: #872733;
  font-weight: 600;
  text-decoration: none;
}
.admin-table a:hover {
  text-decoration: underline;
}
/* Sticky header (first row of labels) */
.admin-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #EDDACA; /* must have a background or it looks “transparent” */
}
/* ensure header stays above body rows */
.admin-table thead {
  position: relative;
  z-index: 6;
}
/* Truncate long email column */
.admin-table td.col-email, .admin-table td.col-email a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
/* Admin table: small "Talão" column */
.admin-table th.col-receipt, .admin-table td.col-receipt {
  width: 70px;
  text-align: left;
  white-space: nowrap;
}
/* Preloader (FOUC safeguard) */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EDDACA; /* base color */
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease, visibility 0ms linear 300ms;
}
.preloader-logo {
  width: 260px;
  max-width: 70vw;
  height: auto;
  display: block;
}
/* Fade out when ready */
.is-ready .preloader {
  opacity: 0;
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .preloader {
    transition: none;
  }
}
