/* ============================
   Volunteer Page Styles
   ============================ */

.volunteer-hero h1 {
  max-width: 16ch;
}

.volunteer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 18%, rgba(20, 108, 95, 0.1), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(212, 175, 55, 0.08), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 244, 236, 0.96) 100%);
  border: 1px solid rgba(216, 225, 232, 0.9);
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.volunteer-hero::after {
  content: '';
  position: absolute;
  inset: auto -12% -35% auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(20, 108, 95, 0.12), transparent 68%);
  pointer-events: none;
}

.volunteer-hero__copy {
  position: relative;
  z-index: 1;
}

.volunteer-hero__copy .actions {
  margin-top: 24px;
}

.volunteer-hero__path {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.volunteer-hero__path span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(20, 108, 95, 0.08);
  border: 1px solid rgba(20, 108, 95, 0.12);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 750;
}

.volunteer-hero__panel {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(216, 225, 232, 0.88);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.volunteer-hero__panel img {
  aspect-ratio: 4 / 3;
}

.volunteer-hero__label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(216, 225, 232, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.volunteer-hero__label strong {
  color: var(--brand);
  font-size: 0.96rem;
}

.volunteer-hero__label span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Volunteer Sections */
.volunteer-section {
  padding: 60px 0;
  max-width: 1180px;
  margin: 0 auto;
  width: min(1180px, calc(100% - 32px));
}


.volunteer-section__heading {
    text-align: center;
    margin-bottom: 40px;
    justify-items: center;
}

.volunteer-section__heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 10px 0 8px;
  color: var(--brand);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.volunteer-section__sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0 auto;
}

.volunteer-section__footnote {
  text-align: center;
  margin-top: 32px;
  padding: 20px;
  background: rgba(20, 108, 95, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(20, 108, 95, 0.1);
  color: var(--muted);
  font-size: 1rem;
}

.volunteer-section--alt {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  padding: 60px 32px;
  margin: 24px auto;
  border: 1px solid rgba(217, 225, 234, 0.6);
}

.volunteer-section--callout {
  text-align: center;
  background: linear-gradient(135deg, rgba(20, 108, 95, 0.04), rgba(212, 175, 55, 0.04));
  border-radius: 24px;
  padding: 64px 32px;
  margin: 24px auto;
  border: 1px solid rgba(212, 175, 55, 0.15);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(216, 225, 232, 0.85);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.benefit-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 1.15rem;
  color: var(--brand);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.benefit-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Opportunities Grid */
.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.opp-card {
  background: #fff;
  border: 1px solid rgba(216, 225, 232, 0.7);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.opp-card:hover {
  border-color: rgba(20, 108, 95, 0.3);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}

.opp-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 10px;
}

.opp-card h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  font-weight: 700;
}

/* Internship Details */
.internship-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}

.details-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(216, 225, 232, 0.85);
  border-radius: 20px;
  padding: 32px 28px;
}

.details-card h3 {
  font-size: 1.3rem;
  color: var(--brand);
  margin: 0 0 16px;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.details-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.details-card ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--muted);
  line-height: 1.5;
}

.details-card ul li::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: var(--brand-2);
  font-weight: 800;
  font-size: 1.2rem;
}

.details-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}

/* ============================
   Modal Styles
   ============================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: modal-fade-in 0.25s ease;
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes modal-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-container {
  background: #fff;
  border-radius: 24px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.2);
  animation: modal-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--brand);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

/* Step Indicators */
.step-indicators {
  display: flex;
  gap: 0;
  padding: 20px 28px 0;
  justify-content: center;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.step-indicator.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.step-indicator.completed {
  color: var(--brand);
  border-bottom-color: var(--brand-2);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.75rem;
  font-weight: 700;
}

.step-indicator.active .step-num,
.step-indicator.completed .step-num {
  background: var(--brand);
  color: #fff;
}

/* Form Steps */
.form-step {
  display: none;
  padding: 24px 28px 28px;
}

.form-step.active {
  display: block;
  animation: step-fade 0.3s ease;
}

@keyframes step-fade {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-step h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 20px;
  font-weight: 700;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 108, 95, 0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--text);
}

.checkbox-label:hover {
  border-color: rgba(20, 108, 95, 0.3);
  background: rgba(20, 108, 95, 0.03);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--brand);
}

.checkbox-label:has(input:checked) {
  border-color: var(--brand);
  background: rgba(20, 108, 95, 0.06);
  color: var(--brand);
  font-weight: 600;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Review Box */
.review-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.review-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}

.review-box dt {
  font-weight: 600;
  color: var(--text);
  font-size: 0.85rem;
  white-space: nowrap;
}

.review-box dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Modal Status */
.modal-status {
  padding: 16px 28px 28px;
  text-align: center;
}

.modal-status.success {
  color: var(--brand);
}

.modal-status.error {
  color: #e53e3e;
}

.modal-status .status-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.modal-status h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.modal-status p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 960px) {
  .volunteer-hero {
    grid-template-columns: 1fr;
  }

  .volunteer-hero__panel img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .volunteer-hero {
    padding: 22px;
    border-radius: 28px;
  }

  .volunteer-hero h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .internship-details {
    grid-template-columns: 1fr;
  }

  .step-indicators {
    overflow-x: auto;
    gap: 4px;
  }

  .step-indicator {
    font-size: 0.75rem;
    padding: 6px 10px;
  }

  .modal-container {
    max-height: 95vh;
    border-radius: 16px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .opportunities-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .opportunities-grid {
    grid-template-columns: 1fr;
  }

  .volunteer-section {
    padding: 36px 0;
  }

  .volunteer-section--alt {
    padding: 36px 16px;
  }

  .volunteer-hero__path {
    gap: 8px;
  }

  .volunteer-hero__path span {
    width: 100%;
    justify-content: center;
  }
}
