/* =========================================================
   for Volunteer Page
   يعتمد على variables.css
   ========================================================= */

.volunteer-page .inner-hero__content-wrapper {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* =========================================================
   1) Sections
   ========================================================= */
.volunteer-benefits,
.volunteer-roles,
.volunteer-reassurance,
.volunteer-form-section,
.final-cta {
  padding: 64px 0;
}

.volunteer-benefits,
.volunteer-form-section {
  background: #f8fafb;
}

.volunteer-roles {
  background: var(--card);
}
.final-cta {
  background:var(--brand-blue);
}


.volunteer-reassurance {
  background: #f0f8ff;
}

/* =========================================================
   2) Benefits
   ========================================================= */
.volunteer-benefits .benefits-grid {
  margin-top: 40px;
}

.volunteer-benefits .benefit-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  height: 100%;
  border: 1px solid var(--border-soft);
  transition: all 0.3s ease;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.volunteer-benefits .benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(1, 146, 220, 0.12);
  border-color: var(--brand-blue);
}

.volunteer-benefits .benefit-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(1, 146, 220, 0.1) 0%, rgba(1, 146, 220, 0.05) 100%);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.volunteer-benefits .benefit-icon i {
  font-size: 28px;
  color: var(--brand-blue);
  transition: all 0.3s ease;
}

.volunteer-benefits .benefit-card:hover .benefit-icon {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  transform: scale(1.08);
}

.volunteer-benefits .benefit-card:hover .benefit-icon i {
  color: #fff;
}

.volunteer-benefits .benefit-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}

.volunteer-benefits .benefit-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* =========================================================
   3) Roles
   ========================================================= */
.volunteer-roles .roles-grid {
  margin-top: 50px;
  --bs-gutter-y: 1.5rem;
}

.volunteer-roles .role-card.clickable-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--border-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}

.volunteer-roles .role-card.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(1, 146, 220, 0.12);
  border-color: var(--brand-blue);
}

.volunteer-roles .role-card--other {
  border-style: dashed;
  background: #fafcfd;
}

.volunteer-roles .role-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f8ff;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.volunteer-roles .role-icon i {
  font-size: 1.9rem;
  color: var(--brand-blue);
  transition: all 0.3s ease;
}

.volunteer-roles .role-card.clickable-card:hover .role-icon {
  background: var(--brand-blue);
  transform: scale(1.08);
}

.volunteer-roles .role-card.clickable-card:hover .role-icon i {
  color: #fff;
}

.volunteer-roles .role-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.volunteer-roles .role-card p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
  flex-grow: 1;
  font-size: 0.9375rem;
}

.volunteer-roles .role-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.volunteer-roles .role-type--field {
  background: rgba(231, 174, 65, 0.12);
  color: #c9930a;
}

.volunteer-roles .role-type--remote {
  background: rgba(1, 146, 220, 0.1);
  color: var(--brand-blue-dark);
}

.volunteer-roles .role-type--hybrid {
  background: rgba(72, 187, 120, 0.1);
  color: #276749;
}

.volunteer-roles .role-type--open {
  background: rgba(159, 122, 234, 0.1);
  color: #6b46c1;
}

/* =========================================================
   4) Reassurance
   ========================================================= */
.volunteer-reassurance .reassurance-content {
  max-width: 800px;
  margin: 0 auto;
}

.volunteer-reassurance .reassurance-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--brand-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(1, 146, 220, 0.2);
}

.volunteer-reassurance .reassurance-icon i {
  font-size: 28px;
  color: #fff;
}

.volunteer-reassurance h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.volunteer-reassurance p {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* =========================================================
   5) Form Section
   ========================================================= */
.volunteer-form-section .form-reassurance {
  text-align: center;
  margin: 30px auto 40px;
  max-width: 600px;
  padding: 16px 20px;
  background: #fffbeb;
  border-radius: 12px;
  border: 1px solid #fcd34d;
}

.volunteer-form-section .form-reassurance p {
  margin: 0;
  color: #92400e;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.volunteer-form-section .form-box {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.volunteer-form-section .form-group-section {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-soft);
}

.volunteer-form-section .form-group-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.volunteer-form-section .form-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.volunteer-form-section .form-section-help {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.volunteer-form-section .form-label,
.volunteer-form-section .form-label-days {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
  font-size: 0.95rem;
}

.required-mark {
  color: #dc2626;
  font-weight: 700;
}

/* Inputs */
.volunteer-form-section .form-group {
  margin-bottom: 20px;
}

.volunteer-form-section .form-control {
  border-radius: 10px;
  border: 2px solid #e2e8f0;
  padding: 12px 16px;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  min-height: 48px;
  color: var(--text);
}

.volunteer-form-section .form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(1, 146, 220, 0.1);
  outline: none;
}

.volunteer-form-section .form-control::placeholder {
  color: #a0aec0;
}

.volunteer-form-section textarea.form-control {
  min-height: 120px;
  resize: vertical;
  padding: 14px 16px;
  line-height: 1.7;
}

.volunteer-form-section .form-text {
  font-size: 0.8125rem;
  color: #718096;
  margin-top: 8px;
  display: block;
  padding-right: 4px;
}

/* Section selection */
.volunteer-form-section .list-inline.selected-amount {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.volunteer-form-section .amount-box {
  position: relative;
  flex: 0 0 auto;
}

.volunteer-form-section .amount-box input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.volunteer-form-section .amount-box label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--card);
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  white-space: nowrap;
  min-height: 48px;
}

.volunteer-form-section .amount-box:hover label {
  border-color: var(--brand-blue);
  background: #f0f8ff;
}

.volunteer-form-section .amount-box input[type="radio"]:checked + label {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  border-color: var(--brand-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(1, 146, 220, 0.3);
}

.volunteer-form-section .amount-box input[type="radio"]:focus + label {
  outline: 3px solid rgba(1, 146, 220, 0.2);
  outline-offset: 2px;
}

.volunteer-form-section .custom-field-wrapper {
  width: 100%;
  margin-top: 12px;
  display: none;
}

/* Volunteer mode */
.volunteer-form-section .mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.volunteer-form-section .mode-option {
  position: relative;
}

.volunteer-form-section .mode-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}

.volunteer-form-section .mode-option label {
  min-height: 74px;
  border: 2px solid #d9e2ec;
  border-radius: 18px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 18px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #5b677a;
  transition: all 0.25s ease;
}

.volunteer-form-section .mode-option:hover label {
  border-color: var(--brand-blue);
  background: #f0f8ff;
}

.volunteer-form-section .mode-option input[type="radio"]:checked + label {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(1, 146, 220, 0.22);
}

/* Transport field improved */
.volunteer-form-section .transport-box {
  margin-top: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 100%);
  border: 1px solid #d7e9f8;
  border-radius: 16px;
  padding: 16px 18px;
  transition: all 0.25s ease;
}

.volunteer-form-section .transport-box:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 20px rgba(1, 146, 220, 0.08);
}

.volunteer-form-section .transport-box .form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.volunteer-form-section .transport-box .form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  margin-left: 5px;

  flex-shrink: 0;
  accent-color: var(--brand-blue);
  cursor: pointer;
}

.volunteer-form-section .transport-box .form-check-label {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 600;
  cursor: pointer;
}

.volunteer-form-section .transport-box .transport-help {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Hours */
.volunteer-form-section .list-inline.select-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.volunteer-form-section .list-inline.select-time li p {
  margin: 0;
  font-weight: 600;
  color: #4a5568;
}

.volunteer-form-section .payment-time-selection {
  padding: 10px 40px 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: var(--card);
  font-size: 0.9375rem;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.25s ease;
  min-width: 220px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a5568' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
}

.volunteer-form-section .payment-time-selection:hover,
.volunteer-form-section .payment-time-selection:focus {
  border-color: var(--brand-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 146, 220, 0.1);
}

/* Days */
.volunteer-form-section .checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.volunteer-form-section .checkbox-group .form-check {
  padding: 0;
  background: var(--card);
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.25s ease;
  margin: 0;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  text-align: center;
}

.volunteer-form-section .checkbox-group .form-check:hover {
  border-color: var(--brand-blue);
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 146, 220, 0.1);
}

.volunteer-form-section .checkbox-group .form-check-input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.volunteer-form-section .checkbox-group .form-check-label {
  cursor: pointer;
  font-size: 0.9375rem;
  color: #4a5568;
  margin: 0;
  padding: 16px 20px;
  font-weight: 500;
  user-select: none;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.volunteer-form-section .checkbox-group .form-check-input:checked + .form-check-label {
  color: #fff;
  font-weight: 700;
}

.volunteer-form-section .checkbox-group .form-check:has(.form-check-input:checked) {
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  box-shadow: 0 4px 16px rgba(1, 146, 220, 0.25);
  transform: translateY(-2px);
}

.volunteer-form-section .checkbox-group .form-check:has(.form-check-input:checked)::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 0.875rem;
  z-index: 3;
}

/* Consent */
.volunteer-form-section .consent-checkbox {
  background: #fffbeb;
  padding: 18px 20px;
  border-radius: 12px;
  border: 2px solid #fcd34d;
  position: relative;
  transition: all 0.2s ease;
}

.volunteer-form-section .consent-checkbox .form-check {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.volunteer-form-section .consent-checkbox .form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  margin-left: 5px;
  flex-shrink: 0;
  accent-color: #f59e0b;
  cursor: pointer;
}

.volunteer-form-section .consent-checkbox .form-check-label {
  color: #92400e;
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.7;
  cursor: pointer;
}

.volunteer-form-section .consent-checkbox.is-invalid {
  border-color: #dc2626;
  background: #fff5f5;
}

.volunteer-form-section .consent-checkbox .invalid-feedback {
  display: none;
  font-size: 0.875rem;
  color: #dc2626;
  margin-top: 10px;
  font-weight: 600;
}

.volunteer-form-section .consent-checkbox.is-invalid .invalid-feedback {
  display: block;
}

/* Validation */
.volunteer-form-section .invalid-feedback {
  display: none;
  font-size: 0.8125rem;
  color: #dc2626;
  margin-top: 6px;
  padding-right: 4px;
}

.volunteer-form-section .form-control.is-invalid ~ .invalid-feedback,
.volunteer-form-section .was-validated .form-control:invalid ~ .invalid-feedback {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volunteer-form-section .form-control.is-invalid,
.volunteer-form-section .was-validated .form-control:invalid,
.volunteer-form-section .payment-time-selection.is-invalid {
  border-color: #dc2626;
  background-image: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.volunteer-form-section .form-control.is-valid,
.volunteer-form-section .was-validated .form-control:valid {
  border-color: #10b981;
  background-image: none;
}

/* Trust line */
.volunteer-form-section .form-trust-line {
  text-align: center;
  margin: 32px 0 24px;
  padding: 16px;
  background: #f0f8ff;
  border-radius: 10px;
}

.volunteer-form-section .form-trust-line p {
  margin: 0;
  color: #4a5568;
  font-size: 0.9375rem;
}

/* Submit */
.volunteer-form-section .btn-style-two {
  padding: 16px 48px;
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: 50px;
  min-width: 220px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(1, 146, 220, 0.25);
  border: none;
}

.volunteer-form-section .btn-style-two:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(1, 146, 220, 0.35);
}

.volunteer-form-section .btn-style-two:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success */
.volunteer-form-section .form-success-message {
  margin-top: 24px;
  padding: 24px;
  background: #d1fae5;
  border-radius: 12px;
  border: 2px solid #10b981;
  text-align: center;
}

.volunteer-form-section .form-success-message i {
  font-size: 2rem;
  color: #10b981;
  margin-bottom: 12px;
  display: block;
}

.volunteer-form-section .form-success-message h4 {
  color: #065f46;
  font-weight: 700;
  margin-bottom: 8px;
}

.volunteer-form-section .form-success-message p {
  color: #047857;
  margin: 0;
  font-size: 1rem;
}

/* =========================================================
   6) Responsive
   ========================================================= */
@media (max-width: 991px) {
  .volunteer-benefits,
  .volunteer-roles,
  .volunteer-reassurance,
  .volunteer-form-section,
  .final-cta {
    padding: 48px 0;
  }

  .volunteer-form-section .form-box {
    padding: 28px 24px;
  }

  .volunteer-roles .roles-grid {
    --bs-gutter-y: 1rem;
  }

  .volunteer-form-section .mode-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .volunteer-form-section .list-inline.selected-amount {
    flex-direction: column;
  }

  .volunteer-form-section .amount-box {
    width: 100%;
  }

  .volunteer-form-section .amount-box label {
    width: 100%;
  }

  .volunteer-form-section .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .volunteer-form-section .checkbox-group .form-check-label {
    padding: 12px 16px;
    font-size: 0.875rem;
  }

  .volunteer-form-section .list-inline.select-time {
    flex-direction: column;
    align-items: stretch;
  }

  .volunteer-form-section .payment-time-selection {
    width: 100%;
    min-width: 100%;
  }

  .volunteer-reassurance h3 {
    font-size: 1.25rem;
  }

  .volunteer-reassurance p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .volunteer-form-section .checkbox-group {
    grid-template-columns: 1fr;
  }
}

.volunteer-form-section .donation-form-samount h5 {
  margin-top: 32px;
  margin-bottom: 14px;
}

.volunteer-form-section .mode-grid {
  margin-top: 12px;
  margin-bottom: 24px;
}

.volunteer-form-section .transport-box {
  margin-top: 24px;
  margin-bottom: 28px;
}

.volunteer-form-section .list-inline.select-time {
  margin: 0 0 28px 0;
}

.volunteer-form-section .checkbox-group {
  margin-top: 12px;
}

.volunteer-form-section .form-label-days {
  margin-bottom: 14px;
}
