
:root {
  --maroon:        #7B1827;
  --maroon-dark:   #5a1020;
  --maroon-deeper: #3d0b16;
  --gold:          #C8962E;
  --gold-light:    #e8b84b;
  --gold-pale:     #f5e6c3;
  --cream:         #FDF8F2;
  --cream-dark:    #f4ece0;
  --text-dark:     #2a1a10;
  --text-mid:      #5a3a28;
  --text-muted:    #8a6a58;
  --white:         #ffffff;
  --shadow: 0 4px 17px rgb(119 23 38);
  --radius:        6px;
}

/* ─── Hero Banner ─── */
.alumni-hero {
  background: linear-gradient(160deg, var(--maroon-deeper) 0%, var(--maroon) 55%, #a0202e 100%);
  padding: 64px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.alumni-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 300px 200px at 10% 20%, rgba(200,150,46,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 300px at 90% 80%, rgba(200,150,46,0.06) 0%, transparent 70%);
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.hero-ornament .line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light));
}
.hero-ornament .line.right {
  background: linear-gradient(to left, transparent, var(--gold-light));
}

.hero-ornament .cross {
  width: 36px;
  height: 36px;
  position: relative;
  opacity: 0.9;
}
.hero-ornament .cross::before,
.hero-ornament .cross::after {
  content: '';
  position: absolute;
  background: var(--gold-light);
  border-radius: 2px;
}
.hero-ornament .cross::before { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.hero-ornament .cross::after  { width: 100%; height: 2px; top: 40%; left: 0; }

.hero-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
  opacity: 0.85;
}

.hero-title {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255);
  margin-bottom: 24px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}
.hero-divider span {
  width: 80px; height: 1px;
  background: rgba(200,150,46,0.5);
}
.hero-divider i {
  width: 6px; height: 6px;
  border: 1.5px solid var(--gold-light);
  transform: rotate(45deg);
  opacity: 0.7;
}

.hero-desc {
  font-size: 15px;
  font-weight: 400;
  color: rgb(255 255 255);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ─── Wave connector ─── */
.wave-connector {
  display: block;
  width: 100%;
  margin-top: -2px;
  line-height: 0;
}

/* ─── Form Wrapper ─── */
.alumni-section {
  background: var(--cream);
  padding: 0 24px 0px;
}

.form-card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(200,150,46,0.18);
  overflow: hidden;
  transform: translateY(-91px);
}

/* ─── Form Header Strip ─── */
.form-header-strip {
  background: var(--cream-dark);
  padding: 22px 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 2px solid var(--gold-pale);
}

.form-logo {
  width: 48px;
  height: 48px;
  background: var(--maroon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-logo svg { width: 26px; height: 26px; fill: var(--gold-light); }

.form-header-text h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--maroon-dark);
}
.form-header-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-header-strip .badge {
  margin-left: auto;
  padding: 5px 14px;
  background: var(--gold-pale);
  border: 1px solid rgba(200,150,46,0.4);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--maroon);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── Form Body ─── */
.form-body { padding: 36px 36px 40px; }

/* ─── Section Labels ─── */
.form-section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.form-section-label .num {
  width: 28px; height: 28px;
  background: var(--maroon);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 15px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-section-label h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--maroon);
}
.form-section-label .rule {
  flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(200,150,46,0.4), transparent);
}

/* ─── Grid ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.form-grid .full { grid-column: 1 / -1; }

/* ─── Field ─── */
.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000000;
}
.field label .req { color: var(--gold); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid rgba(122,24,39,0.18);
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 14.5px;
  color: #000000;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: #000000;  font-style: italic; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,150,46,0.12);
  background: var(--white);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B1827' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* ─── Photo Upload ─── */
.photo-upload-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 20px;
  background: var(--cream-dark);
  border: 1.5px dashed rgba(200,150,46,0.4);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.photo-upload-row:hover {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.photo-frame {
  width: 90px;
  height: 110px;
  background: var(--white);
  border: 2px solid rgba(200,150,46,0.35);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.photo-frame::before,
.photo-frame::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.5;
}
.photo-frame::before { top: 4px; left: 4px; border-width: 1.5px 0 0 1.5px; }
.photo-frame::after  { bottom: 4px; right: 4px; border-width: 0 1.5px 1.5px 0; }

.photo-frame svg { width: 32px; height: 32px; fill: rgba(122,24,39,0.2); }

.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}

.photo-upload-text h5 {
  font-size: 17px;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 4px;
}
.photo-upload-text p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.photo-upload-text .btn-browse {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  background: var(--maroon);
  color: var(--gold-pale);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  border-radius: 4px;
  cursor: pointer;
}

input[type="file"] { display: none; }

/* ─── Spacer between sections ─── */
.form-section + .form-section { margin-top: 36px; }

/* ─── Consent ─── */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: var(--cream-dark);
  border-radius: var(--radius);
  border: 1px solid rgba(200,150,46,0.2);
  margin-top: 28px;
}
.consent-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--maroon);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.consent-row p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
}
.consent-row p a { color: var(--maroon); text-decoration: underline; }

/* ─── Submit Row ─── */
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-dark);
  flex-wrap: wrap;
}

.submit-note {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  flex: 1;
  min-width: 200px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-submit::before {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200,150,46,0.2), transparent);
  transition: left 0.4s;
}
.btn-submit:hover::before { left: 100%; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,16,32,0.3); }
.btn-submit:active { transform: translateY(0); }

.btn-submit svg { width: 16px; height: 16px; fill: var(--gold-light); flex-shrink: 0; }

/* ─── Gold corner accents on card ─── */
.form-card { position: relative; }

/* ─── Footer note ─── */
.alumni-footer-note {
  max-width: 860px;
  margin: -24px auto 0;
  text-align: center;
}
.alumni-footer-note p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 2;
}
.alumni-footer-note a { color: var(--maroon); }

/* ─── Success Toast (hidden by default) ─── */
.toast {
  display: none;
  position: fixed;
  bottom: 32px; right: 32px;
  background: var(--maroon);
  color: var(--white);
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(91,16,32,0.35);
  z-index: 999;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--gold-light);
  max-width: 340px;
  animation: slideUp 0.3s ease;
}
.toast.show { display: flex; }
.toast svg { width: 20px; height: 20px; fill: var(--gold-light); flex-shrink: 0; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .form-body { padding: 24px 20px 32px; }
  .form-header-strip { padding: 18px 20px; }
  .form-header-strip .badge { display: none; }
  .submit-row { flex-direction: column; align-items: stretch; }
  .btn-submit { justify-content: center; }
  .photo-upload-row { flex-direction: column; }
  .photo-frame { width: 100%; height: 140px; }
}
