.volunteer-section {
  position: relative;
  padding: 80px 20px;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #f9fbff, #ffffff);
  font-family: "Inter", sans-serif;
}

.volunteer-bg-effects {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.volunteer-bg-effects img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) brightness(0.6);
}

.volunteer-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: flex-start;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.volunteer-image {
  position: sticky;
  top: 80px;
  align-self: flex-start;
  display: flex;
  justify-content: center;
}

.image-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 520px;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(-2deg);
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: volunteerImageFade 16s infinite;
}

.image-frame img:nth-child(1) { animation-delay: 0s; }
.image-frame img:nth-child(2) { animation-delay: 4s; }
.image-frame img:nth-child(3) { animation-delay: 8s; }
.image-frame img:nth-child(4) { animation-delay: 12s; }

@keyframes volunteerImageFade {
  0% { opacity: 0; transform: scale(1.05); }
  10% { opacity: 1; transform: scale(1); }
  35% { opacity: 1; transform: scale(1); }
  45% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 0; }
}

.image-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,183,3,0.35), transparent 70%);
  filter: blur(45px);
  z-index: -1;
}

.volunteer-form-wrapper {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 22px;
  padding: 42px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(6px);
  overflow: visible;
}

.form-header h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}

.form-header p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 32px;
}

.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 16px;
  color: #fb5607;
}

.form-section-title::after {
  content: "";
  width: 42px;
  height: 3px;
  background: linear-gradient(90deg, #ffb703, #fb5607);
  display: block;
  margin-top: 5px;
  border-radius: 5px;
}

.input-group {
  position: relative;
  margin-bottom: 22px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 8px;
  border: none;
  border-bottom: 2px solid #ddd;
  background: transparent;
  font-size: 0.95rem;
  outline: none;
}

.input-group textarea {
  min-height: 95px;
  resize: vertical;
}

.input-group label {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: #777;
  pointer-events: none;
  transition: 0.25s ease;
}

.input-group textarea + label {
  top: 16px;
  transform: none;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label {
  top: -6px;
  font-size: 0.75rem;
  color: #fb5607;
}

.focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #ffb703, #fb5607);
  transition: width 0.35s ease;
}

.input-group input:focus ~ .focus-line,
.input-group textarea:focus ~ .focus-line {
  width: 100%;
}

.file-input {
  margin-bottom: 22px;
}

.file-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.file-label input {
  display: none;
}

.file-btn {
  padding: 9px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffb703, #fb5607);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}

.file-name {
  font-size: 0.8rem;
  color: #555;
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 18px;
  margin-bottom: 26px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: #444;
}

.checkbox-group input {
  accent-color: #fb5607;
}

.volunteer-btn {
  width: 100%;
  padding: 14px;
  border-radius: 32px;
  border: none;
  background: linear-gradient(135deg, #ffb703, #fb5607);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(251, 86, 7, 0.45);
  position: relative;
}

.volunteer-btn span {
  position: relative;
  z-index: 2;
}

.btn-wave {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.volunteer-btn:hover .btn-wave {
  transform: translateX(0);
}

@media (max-width: 360px) {

  .volunteer-section {
    padding: 60px 14px;
  }

  .volunteer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .image-frame img {
    max-width: 280px;
  }

  .image-glow {
    width: 220px;
    height: 220px;
  }

  .volunteer-form-wrapper {
    padding: 26px 18px;
  }

  .form-header h2 {
    font-size: 1.7rem;
  }

  .form-header p {
    font-size: 0.9rem;
  }

  .form-section-title {
    margin: 24px 0 14px;
  }

  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .volunteer-btn {
    font-size: 0.95rem;
    padding: 13px;
  }
}

@media (min-width: 361px) and (max-width: 575px) {

  .volunteer-section {
    padding: 70px 16px;
  }

  .volunteer-container {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .volunteer-image {
    order: -1;
  }

  .image-frame {
    transform: rotate(0);
  }

  .image-frame img {
    max-width: 320px;
  }

  .image-glow {
    width: 260px;
    height: 260px;
  }

  .volunteer-form-wrapper {
    padding: 30px 22px;
  }

  .form-header h2 {
    font-size: 1.9rem;
  }

  .checkbox-group {
    grid-template-columns: 1fr 1fr;
  }

  .file-label {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .file-btn {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 576px) and (max-width: 767px) {

  .volunteer-container {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .image-frame img {
    max-width: 360px;
  }

  .volunteer-form-wrapper {
    padding: 36px 32px;
  }

  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991px) {

  .volunteer-section {
    padding: 85px 20px;
  }

  .volunteer-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .volunteer-image {
    order: -1;
  }

  .image-frame {
    transform: rotate(0);
  }

  .image-frame img {
    max-width: 400px;
  }

  .volunteer-form-wrapper {
    padding: 42px 38px;
  }

  .checkbox-group {
    grid-template-columns: repeat(3, 1fr);
  }

  .volunteer-image {
    position: relative;
    top: auto;
  }

  .image-frame {
    height: 420px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {

  .volunteer-container {
    gap: 55px;
  }

  .image-frame img {
    max-width: 380px;
  }

  .volunteer-form-wrapper {
    padding: 40px 38px;
  }

  .form-header h2 {
    font-size: 2.2rem;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {

  .volunteer-container {
    max-width: 1200px;
    gap: 65px;
  }

  .image-frame img {
    max-width: 400px;
  }
}

@media (min-width: 1400px) {

  .volunteer-container {
    max-width: 1350px;
    gap: 80px;
  }

  .volunteer-form-wrapper {
    padding: 48px 45px;
  }

  .form-header h2 {
    font-size: 2.6rem;
  }

  .image-frame img {
    max-width: 440px;
  }

  .image-glow {
    width: 380px;
    height: 380px;
  }
}
