/* Custom, scoped polish for Become Volunteer page */

/* Typography & spacing */
.become-volunteer {
  padding: 60px 0;
}

.become-volunteer .section-title__tagline {
  color: #0a7a5b;
  font-weight: 600;
  letter-spacing: .3px;
}

.become-volunteer .section-title__title {
  margin-top: 6px;
}

/* Images grid */
.become-volunteer__images .become-volunteer__img-single {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  margin-bottom: 24px;
}

.become-volunteer__images img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .35s ease;
}

.become-volunteer__images .become-volunteer__img-single:hover img {
  transform: scale(1.06);
}

/* Content card */
.become-volunteer__content {
  background: #ffffff;
  border: 1px solid rgba(10, 122, 91, .12);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(10,122,91,.06);
}

.become-volunteer__points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 8px 0;
}

.become-volunteer__points .icon {
  color: #0a7a5b;
}

.become-volunteer__contact-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #f5fbf9;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
}

.become-volunteer__phone,
.become-volunteer__email {
  display: block;
}

/* Form */
.become-volunteer__right {
  background: #ffffff;
  border: 1px solid rgba(10, 122, 91, .12);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(10,122,91,.06);
}

.become-volunteer__input input,
.become-volunteer__input textarea,
.become-volunteer__input .bootstrap-select .dropdown-toggle {
  border-radius: 10px !important;
  border-color: rgba(10, 122, 91, .22) !important;
  box-shadow: none !important;
}

.become-volunteer__input textarea {
  min-height: 140px;
}

/* Use global donate button colors from theme (var(--wishon-base)) */
/* Match date inputs to other inputs */
.contact-page-form__input-box input[type="date"] {
  height: 64px;
  width: 100%;
  border: none;
  background-color: var(--wishon-extra);
  padding-left: 30px;
  padding-right: 30px;
  outline: none;
  font-size: 14px;
  color: var(--wishon-gray);
  display: block;
  font-weight: 400;
  border-radius: 10px;
}

/* File inputs */
.become-volunteer__file .file-name {
  display: inline-block;
  margin-left: 10px;
  color: #2f4858;
  font-size: 10px;
}

/* Utilities */
@media (max-width: 991.98px) {
  .become-volunteer {
    padding: 40px 0;
  }
  .become-volunteer__images img {
    height: 220px;
  }
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #495057;
  margin: 0;
}

.checkbox-group label:hover {
  background: #ffe6e6;
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.15);
}

.checkbox-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.checkbox-group input[type="checkbox"]:checked {
  background: #dc3545;
  border-color: #dc3545;
}

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

.checkbox-group input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #495057;
}

.radio-group label:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}

.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.radio-group input[type="radio"]:checked {
  border-color: #2196f3;
}

.radio-group input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #2196f3;
  border-radius: 50%;
}

.radio-group input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
}

@media (max-width: 768px) {
  .checkbox-group {
      grid-template-columns: 1fr;
  }
  
  .radio-group {
      flex-direction: column;
      gap: 10px;
  }
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #495057;
  margin: 0;
}

.checkbox-group label:hover {
  background: #ffe6e6;
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.15);
}

.checkbox-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.checkbox-group input[type="checkbox"]:checked {
  background: #dc3545;
  border-color: #dc3545;
}

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

.checkbox-group input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.consent-checkbox {
  margin-top: 10px;
}

.consent-checkbox label {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #495057;
  margin: 0;
}

.consent-checkbox label:hover {
  background: #ffe6e6;
  border-color: #dc3545;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.15);
}

.consent-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-right: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.consent-checkbox input[type="checkbox"]:checked {
  background: #dc3545;
  border-color: #dc3545;
}

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

.consent-checkbox input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radio-group label {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  color: #495057;
}

.radio-group label:hover {
  background: #e3f2fd;
  border-color: #2196f3;
}

.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.radio-group input[type="radio"]:checked {
  border-color: #2196f3;
}

.radio-group input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #2196f3;
  border-radius: 50%;
}

.radio-group input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
}

.word-count-info {
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #6c757d;
  font-style: italic;
  position: relative;
  z-index: auto;
  display: block;
  clear: both;
  width: 100%;
  /* Borders/background intentionally removed */
}

.word-count-info.valid {
  color: #28a745;
  /* No border/background */
}

.word-count-info.invalid {
  color: #dc3545;
  /* No border/background */
}

.motivation-container {
  position: relative;
  margin-bottom: 40px;
  z-index: auto;
}

#motivation-error {
  margin-top: 5px;
  margin-bottom: 20px;
  position: relative;
  z-index: auto;
  display: block;
  clear: both;
  width: 100%;
  /* Borders/background intentionally removed */
}

.become-volunteer__input {
  position: relative;
  z-index: auto; /* avoid unintended stacking contexts */
}

/* Increase default height of motivation textarea */
.motivation-container textarea#motivation_statement {
  min-height: 220px;
  resize: vertical;
}

/* Ensure containers do not clip helper text */
.contact-page-form__input-box {
  overflow: visible;
}

/* Make sure motivation section never overlaps following inputs */
.motivation-container {
  margin-bottom: 48px;
}

/* Offset for date inputs when needed */
.date-row-offset {
  margin-top: 100px;
}

@media (max-width: 768px) {
  .checkbox-group {
      grid-template-columns: 1fr;
  }
  
  .radio-group {
      flex-direction: column;
      gap: 10px;
  }
  
  .motivation-container textarea#motivation_statement {
      min-height: 180px;
  }
}