:root {
  /* The registration flow's palette, matching the community homepage
     (home.css) so the whole site reads as one. The homepage originally
     lived as a standalone build on Netlify; it now serves from this same
     app at the custom domain www.vehaavta.co.il. */
  --primary: #1ea2a7;
  --primary-dark: #0b3a40;
  --gold: #e59025;
  --peach: #f6d8b2;
  --bg: #faf7f2;
  --text: #262322;
  --error: #b3261e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Heebo', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
}

/* decorative touch behind the logo */
.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 140px;
  background: radial-gradient(circle, rgba(229, 144, 37, 0.16) 0%, rgba(229, 144, 37, 0) 70%);
  pointer-events: none;
}

.admin-link {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 1.4rem;
  text-decoration: none;
  color: #999;
  opacity: 0.6;
}

.admin-link:hover {
  opacity: 1;
}

.logo {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px 48px;
  text-align: center;
}

.greeting {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.class-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 4px;
  position: relative;
}

.class-name::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--gold);
  margin: 8px auto 0;
  border-radius: 2px;
}

.intro {
  color: #555;
  margin-bottom: 24px;
}

.nedarim-frame {
  width: 100%;
  min-height: 400px;
  border: 0;
}

#pay-submit {
  display: block;
  width: 100%;
  margin-top: 16px;
}

/* A plain "back to the rest of the site" link for the mid-flow pages
   (payment, check-in) - so a visitor is never stuck on a dead-end screen
   with only the browser back button to escape. */
.back-to-site {
  display: inline-block;
  margin-top: 28px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.back-to-site:hover {
  text-decoration: underline;
}


.tiers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tier-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11, 58, 64, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tier-button:hover:not(.disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 144, 37, 0.35);
}

.tier-button.disabled {
  opacity: 1;
  cursor: not-allowed;
  background: #ccc;
  color: #666;
  box-shadow: none;
}

.tier-amount {
  font-weight: bold;
  color: var(--gold);
}

.tier-button.disabled .tier-amount {
  color: #888;
}

.promo-banner {
  background: var(--peach);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.tier-amount-free {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.1;
}

.tier-amount-struck {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--gold);
  opacity: 0.95;
  font-size: 1em;
  font-weight: normal;
  color: white;
}

.tier-free-badge {
  font-weight: bold;
  color: var(--gold);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 58, 64, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  width: 90%;
  max-width: 360px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(11, 58, 64, 0.35);
}

.modal-close {
  position: absolute;
  top: 8px;
  left: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
}

#phone-form,
.details-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

input[type="tel"],
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  text-align: right;
}

textarea {
  font-family: inherit;
  resize: vertical;
}

input[type="tel"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
}

label {
  text-align: right;
  font-weight: 600;
}

button[type="submit"] {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11, 58, 64, 0.15);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

button[type="submit"]:hover {
  box-shadow: 0 6px 18px rgba(229, 144, 37, 0.35);
  transform: translateY(-1px);
}

.error {
  color: var(--error);
  margin-top: 8px;
}

.hidden {
  display: none;
}

.secure-note {
  font-size: 0.85rem;
  font-weight: normal;
  color: #777;
}

.admin-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-top-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-top-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.admin-top-links a:hover {
  text-decoration: underline;
}

.admin-section {
  margin-top: 32px;
}

.schedule-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 480px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.registrants-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

.registrants-table th,
.registrants-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: right;
  white-space: nowrap;
}

.registrants-table th {
  background: var(--primary);
  color: white;
}

