/* =====================================================
   Volunteer With PMHelp Page Styles
   Following PMhelp design system

   Color Palette:
   - #2C003C - Very dark purple (headings)
   - #636b75 - Gray (body text)
   - #5d007f - Deep purple (gradient start)
   - #9e2ff4 - Violet (gradient mid)
   - #de5af9 - Pink accent (gradient end)
   - #f8f8f8 - Light gray background
   ===================================================== */

.volunteer-hero,
.volunteer-ways-section,
.volunteer-form-section {
  width: 100%;
  box-sizing: border-box;
}

/* ===================
   Hero Section
   =================== */
.volunteer-hero {
  padding: 120px 24px 72px;
  text-align: center;
  position: relative;
}

.volunteer-hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.volunteer-hero-badge {
  display: inline-block;
  padding: 8px 18px;
  margin-bottom: 24px;
  border-radius: 72px;
  background: rgba(158, 47, 244, 0.1);
  color: #5d007f;
  font-size: 13px;
  font-weight: 600;
  font-family: Satoshi, sans-serif;
}

.volunteer-hero-title {
  font-size: 52px;
  font-weight: 900;
  color: #2C003C;
  margin-bottom: 24px;
  line-height: 1.15;
  font-family: Satoshi, sans-serif;
}

.volunteer-hero-subtitle {
  font-size: 17px;
  color: #636b75;
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 680px;
}

.volunteer-hero-cta {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(123.77deg, #5d007f 10%, #9e2ff4 56%, #de5af9 100%);
  color: #ffffff;
  border-radius: 72px;
  font-size: 16px;
  font-weight: 600;
  font-family: Satoshi, sans-serif;
  text-decoration: none;
  box-shadow: 0 2px #8520da;
  transition: all 0.2s;
}

.volunteer-hero-cta:hover {
  background: linear-gradient(123.77deg, #6d0090 10%, #ae3fff 56%, #e87aff 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(133, 32, 218, 0.4);
}

/* ===================
   Ways To Help Section
   =================== */
.volunteer-ways-section {
  padding: 32px 24px 72px;
}

.volunteer-ways-title {
  text-align: center;
  color: #2C003C;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
  font-family: Satoshi, sans-serif;
}

.volunteer-ways-subtitle {
  text-align: center;
  color: #636b75;
  font-size: 15px;
  margin: 0 0 40px;
}

.volunteer-ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.volunteer-way-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.volunteer-way-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(44, 0, 60, 0.08);
}

.volunteer-way-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 16px;
}

.volunteer-way-name {
  font-size: 18px;
  font-weight: 700;
  color: #2C003C;
  margin: 0 0 8px;
  font-family: Satoshi, sans-serif;
}

.volunteer-way-desc {
  font-size: 14px;
  color: #636b75;
  line-height: 1.6;
  margin: 0;
}

/* ===================
   Form Section
   =================== */
.volunteer-form-section {
  padding: 80px 24px;
  background: #f8f8f8;
}

.volunteer-form-wrapper {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.volunteer-form-title {
  font-size: 28px;
  font-weight: 700;
  color: #2C003C;
  margin-bottom: 8px;
  text-align: center;
  font-family: Satoshi, sans-serif;
}

.volunteer-form-description {
  font-size: 15px;
  color: #636b75;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 32px;
}

/* ===================
   Form Fields
   =================== */
.volunteer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.volunteer-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.volunteer-form-group:last-of-type {
  margin-bottom: 0;
}

.volunteer-form-row .volunteer-form-group {
  margin-bottom: 0;
}

.volunteer-form-label {
  font-size: 14px;
  font-weight: 500;
  color: #2C003C;
  margin-bottom: 8px;
  font-family: Satoshi, sans-serif;
}

.volunteer-form-label .optional-tag {
  color: #9ca3af;
  font-weight: 400;
}

.volunteer-hint {
  color: #9ca3af;
  font-weight: 400;
  font-size: 13px;
}

.volunteer-form-input,
.volunteer-form-textarea,
select.volunteer-form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 15px;
  font-family: Satoshi, sans-serif;
  color: #2C003C;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

select.volunteer-form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239e2ff4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.volunteer-form-input:focus,
.volunteer-form-textarea:focus,
select.volunteer-form-input:focus {
  outline: none;
  border-color: #9e2ff4;
  box-shadow: 0 0 0 3px rgba(158, 47, 244, 0.15);
}

.volunteer-form-input::placeholder,
.volunteer-form-textarea::placeholder {
  color: #9ca3af;
}

.volunteer-form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===================
   Checkbox Grid (focus areas)
   =================== */
.volunteer-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.volunteer-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.volunteer-checkbox:hover {
  border-color: #cbb3e0;
  background: #faf6ff;
}

.volunteer-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.volunteer-checkbox-box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #d5c5e3;
  border-radius: 6px;
  position: relative;
  transition: all 0.15s;
}

.volunteer-checkbox-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s;
}

.volunteer-checkbox input:checked ~ .volunteer-checkbox-box {
  background: linear-gradient(123.77deg, #5d007f 10%, #9e2ff4 56%, #de5af9 100%);
  border-color: #9e2ff4;
}

.volunteer-checkbox input:checked ~ .volunteer-checkbox-box::after {
  transform: rotate(45deg) scale(1);
}

.volunteer-checkbox input:checked ~ .volunteer-checkbox-text {
  color: #2C003C;
  font-weight: 600;
}

.volunteer-checkbox input:focus-visible ~ .volunteer-checkbox-box {
  box-shadow: 0 0 0 3px rgba(158, 47, 244, 0.2);
}

.volunteer-checkbox:has(input:checked) {
  border-color: #9e2ff4;
  background: #faf6ff;
}

.volunteer-checkbox-text {
  font-size: 14px;
  color: #636b75;
  font-family: Satoshi, sans-serif;
  line-height: 1.4;
}

/* ===================
   Message Display
   =================== */
.volunteer-message {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
  font-family: Satoshi, sans-serif;
}

.volunteer-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}

.volunteer-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

/* ===================
   Submit Button
   =================== */
.volunteer-submit-btn {
  width: auto;
  min-width: 220px;
  padding: 16px 48px;
  background: linear-gradient(123.77deg, #5d007f 10%, #9e2ff4 56%, #de5af9 100%);
  color: white;
  border: none;
  border-radius: 72px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin: 32px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: Satoshi, sans-serif;
  box-shadow: 0 2px #8520da;
}

.volunteer-submit-btn:hover:not(:disabled) {
  background: linear-gradient(123.77deg, #6d0090 10%, #ae3fff 56%, #e87aff 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(133, 32, 218, 0.4);
}

.volunteer-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.volunteer-submit-btn .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: volunteerSpin 0.8s linear infinite;
}

@keyframes volunteerSpin {
  to { transform: rotate(360deg); }
}

/* ===================
   Responsive Design
   =================== */
@media (max-width: 991px) {
  .volunteer-hero-title {
    font-size: 40px;
  }

  .volunteer-ways-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .volunteer-hero {
    padding: 100px 16px 56px;
  }

  .volunteer-hero-title {
    font-size: 30px;
  }

  .volunteer-hero-subtitle {
    font-size: 15px;
  }

  .volunteer-ways-section {
    padding: 24px 16px 56px;
  }

  .volunteer-ways-grid {
    grid-template-columns: 1fr;
  }

  .volunteer-form-section {
    padding: 56px 16px;
  }

  .volunteer-form-wrapper {
    padding: 24px;
  }

  .volunteer-form-title {
    font-size: 24px;
  }

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

@media (max-width: 479px) {
  .volunteer-submit-btn {
    width: 100%;
  }
}
