/* Volunteer scheduling */

.vol-hero {
  text-align: center;
  padding: 1.2rem 1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.vol-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 140%;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 65%);
  pointer-events: none;
}
.vol-hero h1 {
  margin: 0 0 0.3rem;
  color: var(--primary);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  position: relative;
}
.vol-hero p {
  margin: 0 auto;
  max-width: 36rem;
  opacity: 0.78;
  font-size: 0.92rem;
  position: relative;
}
.vol-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.9rem;
  position: relative;
}
.vol-nav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  background: var(--bg-card, #252525);
  border: 1px solid var(--primary-border, rgba(0, 255, 255, 0.15));
  border-radius: 12px;
  padding: 0.4rem;
  margin-bottom: 0.85rem;
}
.vol-nav a {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
.vol-nav a.is-active {
  background: var(--primary);
  color: var(--text-on-primary, #0a0a0a);
}
.vol-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.vol-stat {
  text-align: center;
  padding: 0.85rem 0.4rem;
}
.vol-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary);
}
.vol-stat span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.vol-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.vol-pill--pending { background: color-mix(in srgb, #f59e0b 22%, transparent); color: #fcd34d; }
.vol-pill--accepted { background: color-mix(in srgb, #22c55e 22%, transparent); color: #86efac; }
.vol-pill--declined { background: color-mix(in srgb, #ef4444 20%, transparent); color: #fca5a5; }
.vol-pill--open { background: color-mix(in srgb, var(--primary) 18%, transparent); color: var(--primary); }
.vol-team-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.3rem;
}
.vol-card {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  margin-bottom: 0.55rem;
}
.vol-skill-match {
  font-size: 0.72rem;
  color: #86efac;
  font-weight: 600;
}
.vol-respond-box {
  max-width: 480px;
  margin: 2rem auto;
  padding: 1.5rem;
  text-align: center;
}
.vol-respond-box .status-big {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0.75rem 0;
}
@media (max-width: 720px) {
  .vol-two-col { grid-template-columns: 1fr !important; }
}

/* ---- Form polish (events / curriculum style) ---- */
.vol-form-page { max-width: 40rem; margin: 0 auto; }
.vol-form-wide { max-width: 52rem; margin: 0 auto; }
.vol-page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}
.vol-page-desc {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.82;
  color: var(--text-muted, #bbb);
}
.vol-back-row { margin: 0 0 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.vol-panel {
  padding: 1.15rem 1.25rem 1.35rem !important;
  margin-bottom: 1rem;
  overflow: visible !important;
  height: auto !important;
}
.vol-panel h2, .vol-panel .section-subtitle {
  margin: 0 0 0.75rem;
  font-size: 1.08rem;
  color: var(--primary);
  font-weight: 700;
}

.vol-styled-form .form-group {
  display: block;
  margin: 0 0 1.05rem;
  max-width: 100%;
  min-width: 0;
}
.vol-styled-form .control-label {
  display: block;
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  line-height: 1.35;
}
.vol-styled-form .help-text {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted, #aaa);
}
.vol-styled-form .form-input,
.vol-styled-form input.form-input,
.vol-styled-form select.form-input,
.vol-styled-form textarea.form-input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.9rem;
  min-height: 2.75rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text-primary, #eee);
  background: var(--bg-card, #252525);
  border: 1px solid var(--primary-border, rgba(0, 255, 255, 0.22));
  border-radius: 10px;
}
.vol-styled-form textarea.form-input {
  min-height: 6.5rem;
  resize: vertical;
}
.vol-styled-form .form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}
.vol-styled-form .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}
@media (min-width: 560px) {
  .vol-styled-form .form-grid { grid-template-columns: 1fr 1fr; }
}
.vol-styled-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
  align-items: center;
}
.vol-styled-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}
.vol-styled-form .checkbox-label input {
  width: auto;
  min-height: auto;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.vol-help-optional { font-weight: 400; opacity: 0.65; font-size: 0.88em; }

.vol-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .vol-two-col { grid-template-columns: 1fr !important; }
}

.vol-member-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.vol-member-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  overflow-wrap: anywhere;
}
.vol-role-card {
  padding: 0.9rem 1rem !important;
  margin-bottom: 0.65rem;
  overflow: visible !important;
}
.vol-member-pick {
  max-height: 14rem;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.15);
}
.vol-member-pick label {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.3rem 0;
  line-height: 1.35;
}
.vol-member-pick input { width: auto; min-height: auto; margin-top: 0.15rem; flex-shrink: 0; }

.table-wrapper.glass { overflow-x: auto; max-width: 100%; }
.data-table th, .data-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
  line-height: 1.4;
}
