/* === Hoboken Happenings — Submit Event Page === */

:root {
  --navy:       #0d1b2a;
  --slate:      #1b2838;
  --charcoal:   #2c3e50;
  --warm-gold:  #d4a056;
  --gold-light: #e8c078;
  --copper:     #c47a3a;
  --cream:      #faf6f0;
  --pearl:      #f2ece3;
  --stone:      #ddd5c8;
  --text:       #2c2c2c;
  --text-muted: #7a7265;
  --white:      #ffffff;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg:  0 8px 30px rgba(0,0,0,0.12);
  --radius:     10px;
  --radius-sm:  6px;
  --green:      #2ecc71;
  --red:        #e74c3c;
}

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

html, body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--text);
}

/* === HEADER === */
.submit-header {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 1.5rem 1.8rem;
  text-align: center;
}
.submit-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.submit-header .accent {
  color: var(--warm-gold);
}
.submit-header .subtitle {
  font-size: 0.95rem;
  color: var(--stone);
  font-weight: 300;
}
.submit-header .subtitle strong {
  color: var(--warm-gold);
  font-weight: 600;
}
.back-link {
  display: inline-block;
  color: var(--stone);
  text-decoration: none;
  font-size: 0.82rem;
  margin-bottom: 0.8rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--warm-gold); }

/* === BANNERS === */
.banner {
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
  margin: 1.2rem auto 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.4;
}
.banner[hidden] { display: none; }
.banner:not([hidden]) { display: flex; }
.banner strong { display: block; margin-bottom: 0.15rem; }
.banner-success {
  background: #f0fdf4;
  border: 1.5px solid var(--green);
  color: #166534;
}
.banner-success svg { color: var(--green); flex-shrink: 0; }
.banner-cancel {
  background: #fef2f2;
  border: 1.5px solid var(--red);
  color: #991b1b;
}
.banner-cancel svg { color: var(--red); flex-shrink: 0; }

/* === FORM === */
main {
  max-width: 600px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
}

/* === SPONSOR PERKS === */
.sponsor-perks {
  background: var(--pearl);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.5rem;
}
.sponsor-perks h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.sponsor-perks ul {
  list-style: none;
  padding: 0;
}
.sponsor-perks li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.6;
}
.sponsor-perks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--warm-gold);
  font-weight: 700;
}

fieldset {
  border: none;
  margin-bottom: 1.5rem;
}
legend {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--stone);
  width: 100%;
}
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
  margin-top: 0.8rem;
}
.req { color: var(--red); }
.hint-inline {
  font-weight: 300;
  color: var(--text-muted);
  font-size: 0.78rem;
}

input[type="text"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="email"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--stone);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--warm-gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 86, 0.15);
}
textarea { resize: vertical; }
select { cursor: pointer; }

.row {
  display: flex;
  gap: 1rem;
}
.row .field { flex: 1; }

.hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}
.hint a {
  color: var(--warm-gold);
  text-decoration: underline;
}

/* === TIER CARDS === */
.tier-options {
  display: flex;
  gap: 0.75rem;
}
.tier-card {
  flex: 1;
  cursor: pointer;
  margin-top: 0;
}
.tier-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tier-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.75rem;
  border: 2px solid var(--stone);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tier-card input:checked + .tier-card-inner {
  border-color: var(--warm-gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 86, 0.18);
}
.tier-price {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.tier-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.tier-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: center;
}

/* === ERRORS === */
.form-errors {
  background: #fef2f2;
  border: 1.5px solid var(--red);
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  white-space: pre-line;
  margin-bottom: 1rem;
}

/* === PAY BUTTON === */
.pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--warm-gold);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.pay-btn:hover { background: var(--copper); }
.pay-btn:active { transform: scale(0.98); }
.pay-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.pay-btn svg { flex-shrink: 0; }

.fine-print {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  line-height: 1.4;
}

/* === FOOTER === */
.submit-footer {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--stone);
}
.submit-footer span + span { margin-left: 0.3rem; }

/* === LOCATION MAP === */
.address-search-row {
  display: flex;
  gap: 0.5rem;
}
.address-search-row input {
  flex: 1;
  width: auto;
}
.geocode-btn {
  padding: 0.55rem 1rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.geocode-btn:hover { background: var(--charcoal); }
.geocode-btn:disabled { opacity: 0.6; cursor: not-allowed; }

#submit-map {
  height: 280px;
  border-radius: var(--radius-sm);
  margin: 0.75rem 0 0.25rem;
  border: 1.5px solid var(--stone);
}
.submit-map-pin { background: none; border: none; }

.geocode-error {
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}
.geocode-error[hidden] { display: none; }

/* === MOBILE === */
@media (max-width: 640px) {
  .submit-header { padding: 1.4rem 1rem 1.2rem; }
  .submit-header h1 { font-size: 1.3rem; }
  main { padding: 0 0.75rem; }
  .row { flex-direction: column; gap: 0; }
  #submit-map { height: 220px; }
  .address-search-row { flex-direction: column; gap: 0.4rem; }
  .geocode-btn { width: 100%; }
}
