/* ============================================
   ADMIT DOWNLOAD PAGE
============================================ */

:root {
  --maroon: #7A1F1F;
  --gold: #C9A227;
  --cream: #FAF6EE;
  --ink: #1C1C1C;
  --line: #E5DCC9;
  --muted: #6B6B6B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #FDFBF7;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==============================
   HEADER
============================== */
.ad-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.ad-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ad-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--maroon);
}

.ad-brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.ad-brand-text {
  display: flex;
  flex-direction: column;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--maroon);
}

.ad-brand-text em {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.ad-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--maroon);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.22s ease;
}
.ad-back-btn:hover {
  background: var(--maroon);
  color: #fff;
  border-color: var(--maroon);
  transform: translateX(-2px);
}

/* ==============================
   HERO
============================== */
.ad-hero {
  background: linear-gradient(135deg, var(--maroon) 0%, #5a1616 100%);
  color: #fff;
  text-align: center;
  padding: 52px 22px 42px;
  position: relative;
  overflow: hidden;
}

.ad-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.14);
}

.ad-hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.1);
}

.ad-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.ad-hero-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--gold);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(201, 162, 39, 0); }
}

.ad-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.ad-hero p {
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.92;
  margin: 0;
}

/* ==============================
   MAIN
============================== */
.ad-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 42px 22px 60px;
}

.ad-card {
  background: #fff;
  width: 100%;
  max-width: 640px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(122, 31, 31, 0.08);
  padding: 36px 34px 30px;
}

/* ==============================
   FORM
============================== */
.ad-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.ad-field {
  display: block;
}

.ad-field > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.ad-field > span i {
  color: var(--gold);
  font-size: 0.85rem;
}

.ad-field input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  color: var(--ink);
  transition: all 0.22s ease;
}

.ad-field input:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}


/* ==============================
   DOWNLOAD GROUP (responsive)
============================== */
.ad-download-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.ad-download-group .ad-download-btn {
  flex: 1 1 220px;
  min-width: 0;
  width: auto;
}

/* Slip button — maroon */
.ad-download-btn--slip {
  background: linear-gradient(135deg, var(--maroon), #5a1616);
  box-shadow: 0 10px 26px rgba(122, 31, 31, 0.32);
}
.ad-download-btn--slip:hover:not(:disabled) {
  box-shadow: 0 14px 34px rgba(122, 31, 31, 0.42);
}

/* Admit button — gold */
.ad-download-btn--admit {
  background: linear-gradient(135deg, var(--gold), #a8851e);
  box-shadow: 0 10px 26px rgba(201, 162, 39, 0.34);
}
.ad-download-btn--admit:hover:not(:disabled) {
  box-shadow: 0 14px 34px rgba(201, 162, 39, 0.42);
}

/* Mobile: stack vertically */
@media (max-width: 560px) {
  .ad-download-group {
    flex-direction: column;
    gap: 10px;
  }
  .ad-download-group .ad-download-btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

.ad-submit-btn {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--maroon), #5a1616);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 10px 26px rgba(122, 31, 31, 0.28);
}

.ad-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(122, 31, 31, 0.36);
}

.ad-submit-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

.ad-note {
  text-align: center;
  font-size: 0.87rem;
  margin: 14px 0 0;
  min-height: 22px;
}
.ad-note.error   { color: #C0392B; }
.ad-note.success { color: #1e7a3a; }
.ad-note.loading { color: var(--maroon); }

/* ==============================
   RESULT CARD
============================== */
.ad-result {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px dashed var(--line);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ad-found-card {
  background: linear-gradient(135deg, #fdfbf7, #faf6ee);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.ad-found-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--maroon));
}

.ad-found-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e7a3a;
  background: rgba(30, 122, 58, 0.1);
  padding: 5px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.ad-found-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--maroon);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ad-found-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

.ad-found-grid p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.ad-found-grid p strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  margin-top: 2px;
}

.ad-download-btn {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #a8851e);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 10px 26px rgba(201, 162, 39, 0.34);
}

.ad-download-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(201, 162, 39, 0.42);
}

.ad-download-btn:disabled {
  opacity: 0.75;
  cursor: wait;
}

/* ==============================
   FOOTER
============================== */
.ad-footer {
  background: #1a0f0f;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  padding: 20px 22px;
  font-size: 0.82rem;
}

.ad-footer a {
  color: var(--gold);
  text-decoration: none;
}
.ad-footer a:hover { text-decoration: underline; }

/* ==============================
   MOBILE
============================== */
@media (max-width: 640px) {
  .ad-header-inner { padding: 12px 16px; }
  .ad-brand-text  { font-size: 1rem; }
  .ad-brand-text em { font-size: 0.6rem; letter-spacing: 0.12em; }
  .ad-brand-logo  { width: 40px; height: 40px; }
  .ad-back-btn span { display: none; }
  .ad-back-btn    { padding: 9px 12px; }

  .ad-hero         { padding: 40px 18px 34px; }
  .ad-hero-badge   { width: 58px; height: 58px; font-size: 1.35rem; }

  .ad-main         { padding: 28px 16px 48px; }
  .ad-card         { padding: 26px 20px 22px; border-radius: 14px; }

  .ad-form-row     { grid-template-columns: 1fr; gap: 14px; }
  .ad-found-grid   { grid-template-columns: 1fr; }
}

/* Hide print area on screen */
.print-area { display: none; }