:root {
  --orange: #FF5722;
  --orange-bg: #FFF3EE;
  --black: #111111;
  --gray-900: #1A1A1A;
  --gray-700: #4A4A4A;
  --gray-500: #8B8B8B;
  --gray-300: #D9D9D9;
  --gray-100: #F5F5F5;
  --gray-50: #FAFAFA;
  --border: #ECECEC;
  --sage: #3B5D4A;
  --sage-tint: #E9F0EA;
  --app-max: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--gray-100);
  color: var(--gray-900);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  -webkit-font-smoothing: antialiased;
  /* Korean should wrap at word boundaries, not mid-word; break-word is the
     escape hatch for anything genuinely too long for its container. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--orange);
  z-index: 40;
  transition: width 0.1s linear;
}

.app {
  max-width: var(--app-max);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0,0,0,0.06);
}

/* Company row */
.company-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(22px + env(safe-area-inset-top)) 20px 0;
}

.company-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.company-logo img {
  width: 100%;
  height: auto;
  padding: 0 2px;
  object-fit: contain;
}

.company-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
}
.company-name .chev { color: var(--gray-500); margin-left: 1px; }

/* Title */
.title-block {
  padding: 12px 20px 16px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.badge-hiring {
  background: var(--orange-bg);
  color: var(--orange);
}

.title-block h1 {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 13.5px;
  color: var(--gray-500);
  margin: 0;
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
  touch-action: pan-y;
  cursor: grab;
}
.carousel-track:active { cursor: grabbing; }
.slide img { -webkit-user-drag: none; user-select: none; }

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dot {
  cursor: pointer;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.2s, width 0.2s;
}
.dot.active { background: #fff; width: 16px; border-radius: 4px; }

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  padding: 22px 20px;
  border-bottom: 8px solid var(--gray-50);
}

.info-label {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 5px;
}
.info-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
}

/* Stage-greeting event */
.event {
  margin: 0;
  padding: 30px 20px 32px;
  background: var(--orange-bg);
  border-top: 8px solid var(--gray-50);
  text-align: center;
}
.event-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.event-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.event-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0 0 20px;
}
.event-info {
  margin-top: 18px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
}
.event-row {
  display: flex;
  align-items: baseline;
  font-size: 14px;
}
.event-row span {
  width: 58px;
  flex-shrink: 0;
  color: var(--gray-500);
  font-size: 13px;
}
.event-row strong { font-weight: 700; color: var(--gray-900); }

.event-cta {
  width: 100%;
  margin-top: 18px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 0;
  font-size: 15.5px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.event-cta:active { opacity: 0.85; }
.event-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Scratch card */
.scratch-card {
  position: relative;
  margin-top: 4px;
  height: 92px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px dashed rgba(255,87,34,0.45);
}
.scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: linear-gradient(135deg, #FFF8F0, #FFE9DD);
}
.scratch-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.scratch-caption {
  font-size: 11.5px;
  color: var(--gray-500);
  font-weight: 600;
}
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: none;
  transition: opacity 0.45s ease;
}
.scratch-canvas.done {
  opacity: 0;
  pointer-events: none;
}
.scratch-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
  transition: opacity 0.3s ease;
}
.scratch-hint.hidden { opacity: 0; }

/* Tabs */
.tabs {
  display: flex;
  margin-top: 24px;
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  background: none;
  border: none;
  padding: 10px 0 12px;
  font-size: 15px;
  color: var(--gray-500);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab.active {
  color: var(--black);
  border-bottom: 2px solid var(--black);
}

.tab-panels {
  padding: 20px 20px 8px;
}

.panel { display: none; font-size: 14.5px; line-height: 1.75; color: var(--gray-900); }
.panel.active { display: block; }
.panel p { margin: 0 0 14px; }
.panel p:last-child { margin-bottom: 0; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 12px;
}
.panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-500);
}
.panel li:last-child { margin-bottom: 0; }

.panel-lead {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 14px;
}

.hint {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

/* Skills */
.skills {
  padding: 22px 20px;
  border-top: 8px solid var(--gray-50);
}
.skills-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 12px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 20px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 600;
}

/* Company card */
.company-card {
  margin: 0 20px 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.company-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.company-card-name { font-size: 15.5px; font-weight: 800; }
.company-card-link { font-size: 12.5px; color: var(--orange); font-weight: 600; margin-top: 2px; }
.company-stats { display: flex; flex-direction: column; gap: 10px; }
.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}
.stat-row span { color: var(--gray-500); }
.stat-row strong { font-weight: 700; text-align: right; }
.company-card-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Reveal */
.reveal {
  background: var(--black);
  color: #fff;
  padding: 40px 20px 32px;
  text-align: center;
}
.reveal-kicker {
  font-size: 13px;
  font-weight: 700;
  color: #FFC107;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  min-height: 16px;
}
.type-cursor {
  animation: blink 0.9s step-end infinite;
}
.type-cursor.stop { opacity: 0; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.poster-wrap {
  max-width: 240px;
  margin: 0 auto 22px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.reveal-copy {
  font-size: 14px;
  line-height: 1.8;
  color: #E4E4E4;
  margin: 0 0 26px;
  text-align: left;
}
.movie-title { color: #FFC107; font-weight: 800; }

.reveal-copy-hook {
  color: #fff;
  font-size: 14.5px;
  line-height: 1.85;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.reveal-copy-hook strong { color: #FFC107; font-weight: 800; }

.movie-meta {
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.14);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding: 16px 0;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.movie-meta-row {
  display: flex;
  font-size: 13.5px;
}
.movie-meta-row span {
  width: 62px;
  flex-shrink: 0;
  color: #8B8B8B;
}
.movie-meta-row strong { font-weight: 600; color: #fff; }

.still-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.still-grid img {
  /* Without an explicit width these grid items collapse to 0x0 before load,
     and a zero-sized lazy image never enters view to trigger its own load. */
  width: 100%;
  /* height:auto is required so the width/height attributes (kept for CLS)
     don't pin the rendered height to the intrinsic 960px. */
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  /* Matches the card artwork's own 30/720 corner radius so the white JPG
     corners don't show against the dark section. Percentages keep the corner
     circular as the column width changes. */
  border-radius: 4.17% / 3.13%;
}

/* Badge generator */
.badge-gen {
  padding: 32px 20px;
  text-align: center;
  border-bottom: 8px solid var(--gray-50);
}
.badge-gen-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.badge-gen-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.badge-gen-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0 0 20px;
}
.badge-canvas-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  margin-bottom: 18px;
}
.badge-canvas-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.badge-photo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-align: left;
}
.badge-photo-preview {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.badge-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.badge-photo-btn {
  background: var(--gray-100);
  color: var(--gray-900);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.badge-photo-btn:active { background: var(--gray-300); }
.badge-photo-hint {
  font-size: 11px;
  color: var(--gray-500);
}

.badge-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  margin-bottom: 14px;
}
.badge-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
}
.badge-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--gray-50);
}
.badge-field input:focus { border-color: var(--black); background: #fff; }

.badge-save-btn {
  width: 100%;
  margin-top: 18px;
  border: none;
  border-radius: 12px;
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  background: var(--sage);
  color: #fff;
}
.badge-save-btn:active { opacity: 0.85; }
.badge-save-btn.is-locked {
  background: var(--gray-300);
  color: #fff;
  cursor: not-allowed;
}
.badge-save-btn.is-locked:active { opacity: 1; }
.badge-save-btn.shake { animation: btnShake 0.36s ease; }
@keyframes btnShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.badge-save-hint {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--orange);
  min-height: 0;
}
@media (prefers-reduced-motion: reduce) {
  .badge-save-btn.shake { animation: none; }
}
.badge-save-btn.copied { background: var(--orange); }

/* Disclaimer */
.disclaimer {
  font-size: 11px;
  line-height: 1.7;
  color: var(--gray-500);
  padding: 18px 20px 0;
  margin: 0;
  text-align: center;
}

.bottom-spacer { height: 40px; }

/* Floating apply button */
.fab-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--app-max);
  margin: 0 auto;
  height: 0;
  pointer-events: none;
  z-index: 30;
}

.fab-apply {
  position: absolute;
  right: 18px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.32);
  white-space: nowrap;
}
.fab-apply:active { opacity: 0.85; }

/* The CTA changes identity mid-page, so make the swap readable rather than abrupt */
.fab-apply {
  transition: background-color 0.35s ease;
}
.fab-apply.is-event { background: var(--orange); }

.fab-apply .fab-label,
.fab-apply svg {
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.fab-apply.is-swapping .fab-label,
.fab-apply.is-swapping svg {
  opacity: 0;
  transform: translateY(-9px);
}
.fab-apply.is-swapped-in { animation: fabPop 0.44s cubic-bezier(.22,.61,.36,1); }
.fab-apply.is-swapped-in .fab-label,
.fab-apply.is-swapped-in svg { animation: fabLabelIn 0.4s cubic-bezier(.22,.61,.36,1); }

@keyframes fabPop {
  0%   { transform: scale(1); }
  38%  { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@keyframes fabLabelIn {
  from { opacity: 0; transform: translateY(11px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-apply, .fab-apply .fab-label, .fab-apply svg { transition: none; animation: none; }
}

/* Icon swaps with the CTA's mode */
.fab-apply .fab-icon-event { display: none; }
.fab-apply.is-event .fab-icon-job { display: none; }
.fab-apply.is-event .fab-icon-event { display: block; }

/* The event section carries its own CTA, so the floating one steps aside */
.fab-wrap {
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.fab-wrap.fab-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  visibility: hidden;
}
/* .fab-apply sets pointer-events:auto, which would otherwise override the
   wrapper's `none` and leave an invisible button catching taps. */
.fab-wrap.fab-hidden .fab-apply { pointer-events: none; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  max-width: calc(100% - 48px);
  background: rgba(20, 24, 26, 0.94);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 200;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  width: 100%;
  max-width: var(--app-max);
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 22px calc(24px + env(safe-area-inset-bottom));
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
}
.modal-overlay.show .modal { transform: translateY(0); }

#modalForm h2 { padding-right: 42px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.modal-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 8px;
}
.modal h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 800;
}
.modal-desc {
  font-size: 13.5px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0 0 22px;
}

.modal-event-info {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--orange-bg);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.modal-event-info .event-row { font-size: 13.5px; }

.agree-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 14px 10px;
}
.agree-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--gray-700) !important;
  cursor: pointer;
  margin: 0;
}
.agree-row input { flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--orange); margin: 0; }
.agree-all-row {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--gray-900) !important;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.agree-item { padding: 4px 0; }
.agree-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.agree-toggle {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 6px 2px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: underline;
  cursor: pointer;
}
.agree-doc {
  /* Preserves the source .txt line breaks and indentation verbatim */
  white-space: pre-wrap;
  margin-top: 8px;
  padding: 12px 13px;
  max-height: 168px;
  overflow-y: auto;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--gray-700);
}
.agree-doc[hidden] { display: none; }
.agree-doc b { color: var(--gray-900); font-weight: 700; }

/* Event notice — always visible; the sticky CTA keeps it from burying the button */
.notice-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.notice-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 9px;
}
.notice-doc {
  margin: 0;
  padding: 0;
  list-style: none;
}
.notice-doc li {
  position: relative;
  padding-left: 11px;
  margin-bottom: 8px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--gray-700);
}
.notice-doc li:last-child { margin-bottom: 0; }
.notice-doc li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--gray-500);
}

#applyForm { display: flex; flex-direction: column; gap: 16px; }
#applyForm label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
}
.optional { color: var(--gray-500); font-weight: 400; }
#applyForm input[type="text"],
#applyForm input[type="tel"],
#applyForm input[type="email"] {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  background: var(--gray-50);
}
#applyForm input:focus { border-color: var(--black); background: #fff; }

.checkbox-row {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 9px !important;
  font-weight: 400 !important;
  color: var(--gray-700) !important;
  font-size: 12.5px !important;
  line-height: 1.5;
}
.checkbox-row input { margin-top: 2px; flex-shrink: 0; }

.modal-submit {
  margin-top: 6px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 0;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
}
.modal-submit:active { opacity: 0.85; }

/* Keep the apply CTA reachable without scrolling past the form + notices. */
.modal-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fff;
  padding: 10px 0 4px;
  margin-top: -6px;
}
.modal-actions::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
  background: linear-gradient(to top, #fff, rgba(255,255,255,0));
  pointer-events: none;
}
.modal-actions .modal-submit { margin-top: 0; width: 100%; }
.modal-submit:disabled {
  opacity: 0.6;
  cursor: default;
  /* Belt-and-braces against a ghost tap landing on the in-flight button */
  pointer-events: none;
}

.modal-success { display: none; text-align: center; padding-top: 12px; }
.modal-success.show { display: block; }
.modal-body.hidden { display: none; }

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--orange-bg);
  color: var(--orange);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-success h2 { text-align: center; }
.modal-success .modal-submit { display: block; width: 100%; }
.modal-success .modal-desc { text-align: center; margin-bottom: 26px; }

@media (min-width: 481px) {
  body { background: var(--gray-300); padding: 24px 0; }
  .app { border-radius: 20px; overflow: hidden; min-height: auto; }
}
