.volunteer-form-container {
  max-width: 500px;
  margin: 100px auto;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(122, 44, 255, 0.1);
  transition: all 0.4s ease;
  border: 1px solid rgba(122, 44, 255, 0.1);
}

.volunteer-form-container h1 {
  text-align: center;
  color: #7a2cff;
  transition: color 0.4s ease;
  margin-bottom: 30px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.volunteer-form-container h1 i {
  font-size: 1.8rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-weight: 600;
  color: #333;
  transition: color 0.4s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

label i {
  width: 16px;
  color: #7a2cff;
}

/* Improved Input Fields */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

input {
  padding: 14px 16px 14px 45px;
  border: 2px solid #e8ecf4;
  border-radius: 12px;
  font-size: 1rem;
  background: #f8fafc;
  color: #333;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #7a2cff;
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
}

input:focus {
  outline: none;
  border-color: #7a2cff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(122, 44, 255, 0.1);
  transform: translateY(-1px);
}

input:hover {
  border-color: #c44bff;
  background: #fff;
}

input::placeholder {
  color: #9ca3af;
  transition: color 0.3s ease;
}

input:focus::placeholder {
  color: #c7d2fe;
}

/* Improved Dropdown */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

select {
  padding: 14px 45px 14px 16px;
  border: 2px solid #e8ecf4;
  border-radius: 12px;
  font-size: 1rem;
  background: #f8fafc;
  color: #333;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 16px;
  color: #7a2cff;
  font-size: 0.9rem;
  pointer-events: none;
  transition: transform 0.3s ease;
}

select:focus {
  outline: none;
  border-color: #7a2cff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(122, 44, 255, 0.1);
  transform: translateY(-1px);
}

select:hover {
  border-color: #c44bff;
  background: #fff;
}

select:focus + .select-arrow {
  transform: rotate(180deg);
}

/* Checkbox Styling */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  margin-top: 5px;
}
.checkbox-container.red {
  color: rgb(234, 68, 68);
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e8ecf4;
  border-radius: 6px;
  background: #f8fafc;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: #7a2cff;
  border-color: #7a2cff;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-container:hover .checkmark {
  border-color: #7a2cff;
}

.link {
  color: #7a2cff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link:hover {
  color: #9d59ff;
  text-decoration: underline;
}

/* Improved Button */
.submit-btn {
  background: linear-gradient(135deg, #7a2cff, #9d59ff);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(122, 44, 255, 0.4);
  background: linear-gradient(135deg, #9d59ff, #7a2cff);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.btn-loading {
  display: none;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading .btn-loading {
  display: block;
}

/* === DARK MODE STYLES === */
body.dark-mode .volunteer-form-container {
  background: #1a1a1a;
  box-shadow: 0 15px 35px rgba(122, 44, 255, 0.15);
  border-color: rgba(122, 44, 255, 0.2);
}

body.dark-mode .volunteer-form-container h1 {
  color: #9d59ff;
}

body.dark-mode label {
  color: #f5f5f5;
}

body.dark-mode label i {
  color: #9d59ff;
}

body.dark-mode input,
body.dark-mode select {
  background: #2d2d2d;
  border-color: #444;
  color: #f5f5f5;
}

body.dark-mode .input-icon,
body.dark-mode .select-arrow {
  color: #9d59ff;
}

body.dark-mode input:hover,
body.dark-mode select:hover {
  border-color: #9d59ff;
  background: #363636;
}

body.dark-mode input:focus,
body.dark-mode select:focus {
  border-color: #9d59ff;
  background: #2d2d2d;
  box-shadow: 0 0 0 3px rgba(157, 89, 255, 0.2);
}

body.dark-mode input::placeholder {
  color: #888;
}

body.dark-mode .checkmark {
  background: #2d2d2d;
  border-color: #555;
}

body.dark-mode .checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: #9d59ff;
  border-color: #9d59ff;
}

body.dark-mode .checkbox-container:hover .checkmark {
  border-color: #9d59ff;
}

body.dark-mode .link {
  color: #9d59ff;
}

body.dark-mode .link:hover {
  color: #c44bff;
}

body.dark-mode .submit-btn {
  background: linear-gradient(135deg, #7a1f56, #9d59ff);
}

body.dark-mode .submit-btn:hover {
  background: linear-gradient(135deg, #9d59ff, #7a1f56);
  box-shadow: 0 8px 25px rgba(157, 89, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .volunteer-form-container {
    margin: 80px 20px;
    padding: 30px 25px;
    border-radius: 16px;
  }
  
  .volunteer-form-container h1 {
    font-size: 1.6rem;
  }
  
  input, select {
    padding: 16px 16px 16px 45px;
    font-size: 16px;
  }
  
  .submit-btn {
    padding: 18px 24px;
    font-size: 1rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .volunteer-form-container,
  .volunteer-form-container h1,
  label,
  input,
  select,
  button,
  .checkmark {
    transition: none;
  }
  
  .submit-btn:hover,
  input:focus,
  select:focus {
    transform: none;
  }
  
  .submit-btn::before {
    display: none;
  }
  
  .select-arrow {
    transition: none;
  }
}

/* Focus styles for accessibility */
input:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 2px solid #7a2cff;
  outline-offset: 2px;
}

body.dark-mode input:focus-visible,
body.dark-mode select:focus-visible,
body.dark-mode button:focus-visible {
  outline-color: #9d59ff;
}