/* =============================================================
   Monkeys Academia - Color Palette
   Brand colors: black, red, white (+ supporting neutrals)
   ============================================================= */
:root {
  /* Core brand */
  --ma-black:        #0D0D0D;  /* primary text / backgrounds   */
  --ma-red:          #D7263D;  /* primary action / accent      */
  --ma-red-dark:     #A81C2E;  /* hover / pressed              */
  --ma-white:        #FFFFFF;  /* surfaces / inverse text      */

  /* Supporting neutrals */
  --ma-ink-800:      #1A1A1A;  /* cards on dark                */
  --ma-gray-600:     #4D4D4D;  /* secondary text              */
  --ma-gray-300:     #CFCFCF;  /* borders                     */
  --ma-gray-100:     #F4F4F4;  /* page background             */

  /* Feedback */
  --ma-success:      #2E7D32;
  --ma-error:        #D7263D;

  /* Tokens */
  --radius:          14px;
  --shadow:          0 10px 30px rgba(13, 13, 13, 0.12);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ma-black);
  background:
    radial-gradient(1200px 600px at 50% -10%, #1a1a1a 0%, var(--ma-black) 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Header / logo ---------- */
.ma-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 0 8px;
}

/* Monkey mascot logo */
.ma-logo {
  height: 64px;
  width: auto;
  border-radius: 12px;
  background: var(--ma-white);
  padding: 4px;
  object-fit: contain;
}

.ma-title {
  color: var(--ma-white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.ma-title span { color: var(--ma-red); }

/* ---------- Layout ---------- */
main {
  width: 100%;
  max-width: 560px;
  padding: 24px 18px 60px;
}

.card {
  background: var(--ma-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.screen { display: none; }
.screen.active { display: block; }

h2 {
  margin: 0 0 4px;
  font-size: 24px;
}
.subtitle {
  margin: 0 0 22px;
  color: var(--ma-gray-600);
  font-size: 14px;
}

/* ---------- Landing options ---------- */
.options { display: grid; gap: 16px; }
.option-btn {
  text-align: left;
  border: 2px solid var(--ma-gray-300);
  background: var(--ma-white);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  transition: border-color .15s, transform .05s;
}
.option-btn:hover { border-color: var(--ma-red); }
.option-btn:active { transform: scale(.99); }
.option-btn strong { display: block; font-size: 18px; }
.option-btn span { color: var(--ma-gray-600); font-size: 14px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ma-gray-300);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}
input:focus {
  outline: none;
  border-color: var(--ma-red);
  box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.15);
}

/* ---------- File picker ---------- */
.file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* Hide the native input but keep it accessible/clickable via its labels. */
.file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.file-picker-btn {
  display: inline-block;
  margin: 0;
  padding: 11px 18px;
  border: 1.5px solid var(--ma-red);
  border-radius: 10px;
  background: var(--ma-white);
  color: var(--ma-red);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.file-picker-btn:hover { background: var(--ma-red); color: var(--ma-white); }
.file-picker input[type="file"]:focus-visible + .file-picker-btn {
  outline: none;
  box-shadow: 0 0 0 3px rgba(215, 38, 61, 0.15);
}
.file-picker-name {
  color: var(--ma-gray-600);
  font-size: 14px;
  word-break: break-all;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--ma-gray-100);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 18px;
  font-size: 14px;
}
.checkbox-row a { color: var(--ma-red); }

/* ---------- Buttons ---------- */
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary { background: var(--ma-red); color: var(--ma-white); }
.btn-primary:hover { background: var(--ma-red-dark); }
.btn-primary:disabled { background: var(--ma-gray-300); cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--ma-gray-600);
  font-weight: 600;
  margin-top: 10px;
}

/* ---------- OTP ---------- */
.otp-input {
  letter-spacing: 10px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
}

/* ---------- Messages ---------- */
.message { margin-top: 16px; font-size: 14px; border-radius: 10px; padding: 12px 14px; }
.message.error   { background: #fde8eb; color: var(--ma-error); }
.message.success { background: #e7f3e8; color: var(--ma-success); }
.message.info    { background: var(--ma-gray-100); color: var(--ma-gray-600); }
.message:empty   { display: none; }

.hidden { display: none !important; }

/* ---------------- privacy notice modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.modal {
  background: var(--ma-white);
  color: var(--ma-black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.modal h2 { margin: 0 0 12px; }

.modal-body {
  overflow-y: auto;
  margin-bottom: 20px;
}

.modal-body h3 {
  margin: 18px 0 4px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ma-red);
}

.modal-body p {
  margin: 0;
  color: var(--ma-gray-600);
  line-height: 1.5;
}
