@font-face {
  font-family: 'Glorify';
  src: url('/assets/glorify.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'Graphik Arabic';
  src: url('/assets/graphik-arabic-semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

:root {
  color: #2c4942;
  background: #ece2d4;
  font-family: Arial, Helvetica, 'Graphik Arabic', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.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;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  padding: 30px 20px 72px;
  background-color: #ece2d4;
  background-image: linear-gradient(rgba(241, 208, 156, .275), rgba(241, 208, 156, .275)), url('/assets/background-2.webp');
  background-position: center;
  background-size: cover;
}

.site-header {
  width: min(100%, 1000px);
  min-height: 52px;
  margin: 0 auto 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wordmark {
  display: block;
  width: 150px;
  aspect-ratio: 582.56 / 114.14;
  background: #aa4f43;
  -webkit-mask: url('/assets/entro-wordmark.svg') center / contain no-repeat;
  mask: url('/assets/entro-wordmark.svg') center / contain no-repeat;
}
.back-link {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
}
.back-link:hover { color: #aa4f43; }

.form-card {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 62px);
  background: rgba(250, 244, 233, .92);
  border: 1px solid rgba(77, 73, 59, .18);
  box-shadow: 0 16px 54px rgba(44, 73, 66, .07);
}
.intro { text-align: center; margin-bottom: 42px; }
.eyebrow {
  margin: 0 0 13px;
  color: #aa4f43;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2 { font-family: 'Glorify', Georgia, serif; font-weight: 400; }
h1 { margin: 0 0 12px; color: #aa4f43; font-size: clamp(38px, 6vw, 70px); line-height: 1; }
.intro > p:not(.eyebrow) { margin: 0 auto; max-width: 500px; line-height: 1.55; font-size: 14px; }
.intro .required-note { margin-top: 22px !important; color: #66736b; font-size: 12px !important; }
.required-note span, label b { color: #aa4f43; font-weight: 700; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 24px; }
.field, .upload-field { min-width: 0; }
.field.full-width { grid-column: 1 / -1; }
.field label, .upload-field label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
label span[lang="ar"] { font-family: 'Graphik Arabic', sans-serif; font-weight: 600; }
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 47px;
  padding: 11px 14px;
  border: 1px solid #c9c7b6;
  border-radius: 0;
  outline: none;
  color: #2c4942;
  background: rgba(255, 253, 248, .84);
}
/* Keep Safari's native date control within its grid column on iOS. */
.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}
.field input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}
.field textarea { min-height: 105px; resize: vertical; }
.field input[hidden] { display: none; }
.field input[id$="-other"]:not([hidden]) { margin-top: 10px; }
.field select { cursor: pointer; }
.field :is(input, select, textarea):focus { border-color: #aa4f43; box-shadow: 0 0 0 2px rgba(170, 79, 67, .13); }
.field input::placeholder { color: #738079; }

.upload-section { margin-top: 43px; padding-top: 30px; border-top: 1px solid #cac9ba; }
.upload-section h2 { margin: 0 0 7px; color: #aa4f43; font-size: 32px; }
.upload-section > p { margin: 0 0 22px; font-size: 13px; line-height: 1.5; }
.upload-grid { display: grid; gap: 22px; }
.upload-field { padding: 18px 18px 8px; background: rgba(255, 253, 248, .75); border: 1px solid #d4d0c0; }
.upload-field label { margin-bottom: 2px; }
.upload-field > p { margin: 0 0 14px; color: #68756d; font-size: 12px; }
.upload-field input[type="file"] { display: block; width: 100%; margin-bottom: 14px; color: transparent; font-size: 13px; }
.upload-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 9px 12px;
  border: 1px solid #aa4f43;
  color: #aa4f43;
  background: transparent;
  cursor: pointer;
}
.selected-files { margin: 0 0 12px; padding: 0; list-style: none; }
.selected-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #ded9ca; font-size: 12px; }
.selected-file-name { min-width: 0; overflow-wrap: anywhere; }
.remove-file { flex: none; padding: 5px 7px; border: 0; color: #aa4f43; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.remove-file:hover { text-decoration: underline; }
.remove-file:focus-visible { outline: 2px solid #aa4f43; outline-offset: 2px; }
.remove-file:disabled { opacity: .5; cursor: progress; }
.security-check { margin-top: 28px; min-height: 65px; }

.form-error { margin: 24px 0 0; padding: 14px 16px; color: #8e392f; background: #f8e3db; border-left: 3px solid #aa4f43; font-size: 13px; line-height: 1.5; }
.submission-status { margin: 24px 0 0; font-size: 13px; font-weight: 700; }
.form-footer { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.form-footer p { max-width: 380px; margin: 0; color: #65736c; font-size: 12px; line-height: 1.55; }
.form-footer button, .return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 23px;
  border: 1px solid #aa4f43;
  color: #fffaf1;
  background: #aa4f43;
  font-family: 'Glorify', Georgia, serif;
  font-size: 18px;
  white-space: nowrap;
  cursor: pointer;
}
.form-footer button:hover, .return-button:hover { background: #8f4036; }
.form-footer button:disabled { opacity: .65; cursor: progress; }
.botcheck { display: none !important; }

.thank-you-shell { display: flex; flex-direction: column; }
.thank-you-card { max-width: 620px; margin: auto; text-align: center; }
.thank-you-card > p:not(.eyebrow) { line-height: 1.6; }
.return-button { margin-top: 24px; }

@media (max-width: 800px) {
  .page-shell { background-image: linear-gradient(rgba(241, 208, 156, .275), rgba(241, 208, 156, .275)), url('/assets/background-1.webp'); }
}
@media (max-width: 640px) {
  .page-shell { padding: 20px 14px 48px; }
  .site-header { min-height: 68px; margin-bottom: 18px; align-items: flex-start; }
  .wordmark { width: 125px; margin-top: 4px; }
  .back-link { top: auto; bottom: 0; transform: none; }
  .form-card { padding: 30px 20px 38px; }
  .intro { margin-bottom: 30px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .form-footer { display: block; }
  .form-footer button { width: 100%; margin-top: 20px; }
  .thank-you-card { margin: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
