.volunteer-portal {
  padding: 70px 20px;
  background: linear-gradient(135deg, #eef2ff, #fff7ed);
}

.volunteer-container {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: flex-start;
}

.volunteer-info {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border-radius: 22px;
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

.volunteer-info h2 {
  font-size: 2rem;
  line-height: 1.2;
}

.volunteer-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
}

.volunteer-benefits {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.volunteer-benefits li {
  font-size: 0.9rem;
}

.volunteer-illustration {
  margin-top: auto;
}

.volunteer-illustration img {
  width: 100%;
  max-width: 280px;
  border-radius: 14px;
}

.volunteer-form-card {
  background: #fff;
  border-radius: 22px;
  padding: 38px 36px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}

.volunteer-form-card h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.volunteer-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-section h4 {
  font-size: 0.95rem;
  color: #4f46e5;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 0.82rem;
  color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.88rem;
  transition: 0.25s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.14);
}

.checkbox-group {
  gap: 8px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.checkbox-grid label {
  background: #f1f5ff;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.25s;
}

.checkbox-grid label:hover {
  background: #e0e7ff;
}

.volunteer-submit {
  margin-top: 10px;
  padding: 12px;
  border-radius: 36px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.35s;
}

.volunteer-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.volunteer-info,
.volunteer-form-card {
  opacity: 0;
  transform: translateY(28px);
  transition: 0.8s ease;
}

.volunteer-info.show,
.volunteer-form-card.show {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1400px) {
  .volunteer-container {
    max-width: 1280px;
    gap: 60px;
  }

  .volunteer-info h2 {
    font-size: 2.2rem;
  }

  .volunteer-form-card h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 1399px) {
  .volunteer-container {
    gap: 45px;
  }

  .volunteer-info {
    padding: 34px 32px;
  }

  .volunteer-form-card {
    padding: 34px 32px;
  }
}

@media (max-width: 1023px) {
  .volunteer-portal {
    padding: 60px 18px;
  }

  .volunteer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .volunteer-info {
    padding: 34px 30px;
    align-items: flex-start;
  }

  .volunteer-illustration img {
    max-width: 240px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .volunteer-portal {
    padding: 50px 16px;
  }

  .volunteer-info h2 {
    font-size: 1.7rem;
  }

  .volunteer-info p {
    font-size: 0.9rem;
  }

  .volunteer-form-card h3 {
    font-size: 1.4rem;
  }

  .volunteer-illustration img {
    max-width: 220px;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .volunteer-portal {
    padding: 40px 14px;
  }

  .volunteer-info {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .volunteer-form-card {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .volunteer-info h2 {
    font-size: 1.5rem;
  }

  .volunteer-form-card h3 {
    font-size: 1.3rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .volunteer-submit {
    padding: 11px;
    font-size: 0.9rem;
  }
}

