:root {
  --pjc-green: #064429;
  --pjc-gold: #FFC72C;
  --pjc-deep: #032918;
  --pjc-leaf: #4A9A3C;
  --pjc-off-white: #F8F8F8;
  --pjc-text: #1A1A1A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--pjc-off-white);
  color: var(--pjc-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: white;
  border-top: 5px solid var(--pjc-green);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

header img {
  height: 48px;
  width: auto;
}

header .site-name {
  font-family: Georgia, Garamond, serif;
  font-size: 1.1rem;
  color: var(--pjc-green);
  line-height: 1.3;
}

.gold-bar {
  height: 4px;
  background: var(--pjc-gold);
}

/* Main content */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.1);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
}

.card h1 {
  font-family: Georgia, Garamond, serif;
  font-size: 1.5rem;
  color: var(--pjc-green);
  margin-bottom: 8px;
}

.card .step-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pjc-green);
  background: var(--pjc-gold);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.card p {
  color: #555;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.masked-email {
  background: #e8f4e8;
  border: 1px solid var(--pjc-green);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--pjc-green);
  text-align: center;
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pjc-text);
  margin-bottom: 6px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: inherit;
}

input:focus {
  outline: 2px solid var(--pjc-green);
  border-color: var(--pjc-green);
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: var(--pjc-green);
  color: var(--pjc-gold);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

button[type="submit"]:hover { background: var(--pjc-deep); }
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,199,44,0.3);
  border-top-color: var(--pjc-gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  background: #fdf2f2;
  border: 1px solid #e74c3c;
  color: #c0392b;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
}

/* Success screen */
.success-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 12px;
}

.success-box {
  background: #e8f4e8;
  border: 2px solid var(--pjc-leaf);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.success-box strong {
  display: block;
  font-size: 1.1rem;
  color: var(--pjc-green);
  margin-bottom: 4px;
}

ol {
  padding-left: 20px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.8;
}

.helpdesk-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

.helpdesk-note a { color: var(--pjc-green); }

/* Footer */
footer {
  text-align: center;
  padding: 16px;
  font-size: 0.8rem;
  color: #aaa;
}
