/* ── Variables MBSR ── */
:root {
  --sage:        #7c9a72;
  --sage-dark:   #5f7d56;
  --sage-light:  #a8c09e;
  --sage-bg:     #eef3ec;
  --beige:       #f5f0e8;
  --cream:       #faf9f6;
  --earth:       #8b7355;
  --earth-light: #b09a7e;
  --gray:        #6b7280;
  --gray-light:  #9ca3af;
  --border:      #e0ddd7;
  --text:        #374151;
  --text-light:  #6b7280;
  --white:       #ffffff;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 24px rgba(0,0,0,.10);
  --transition:  all .2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--beige);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; border: none; }
input, textarea, select { font-family: inherit; font-size: 15px; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px;
  text-align: center;
}
.header-inner h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--sage-dark);
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.header-inner .subtitle {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Main ── */
.main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ── Section titles ── */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sage-light);
  display: inline-block;
}

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.badge-open {
  background: var(--sage-bg);
  color: var(--sage-dark);
}
.badge-full {
  background: #fef3cd;
  color: #856404;
}
.badge-presentation {
  background: #e8e4df;
  color: var(--earth);
}
.card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.card-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.card-actions {
  display: flex;
  gap: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--sage);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--sage-dark);
}
.btn-secondary {
  background: transparent;
  color: var(--sage-dark);
  border: 1px solid var(--sage);
}
.btn-secondary:hover {
  background: var(--sage-bg);
}
.btn-earth {
  background: var(--earth);
  color: var(--white);
}
.btn-earth:hover {
  background: #7a6548;
}
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ── Form ── */
.form-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.form-section h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.form-section .form-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group label .required {
  color: #c0392b;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text);
  transition: var(--transition);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(124,154,114,.15);
}
textarea {
  min-height: 100px;
  resize: vertical;
}
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ── Radio type selector ── */
.type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.type-option {
  position: relative;
}
.type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.type-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.type-option label svg {
  width: 28px;
  height: 28px;
  color: var(--gray-light);
  transition: var(--transition);
}
.type-option label .type-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.type-option label .type-desc {
  font-size: 11px;
  color: var(--text-light);
}
.type-option input:checked + label {
  border-color: var(--sage);
  background: var(--sage-bg);
}
.type-option input:checked + label svg {
  color: var(--sage-dark);
}

/* ── Toast / messages ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-success { background: var(--sage-dark); }
.toast-error { background: #c0392b; }

/* ── Loading ── */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
}
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty state ── */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-light);
  font-size: 14px;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--gray-light);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--white);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .header-inner h1 { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .type-selector { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-section { padding: 20px; }
}
