/* ===========================
	 VOLUNTEER HERO
	 =========================== */
.page-volunteer .volunteer-hero {
  background: rgba(0, 128, 55, 0.75);
	padding: 2rem 1.5rem;
	overflow: hidden;
}

.page-volunteer .volunteer-hero .hero-container {
	display: grid;
	grid-template-columns: 2fr 3fr;
	align-items: center;
	gap: 2rem;
}

.page-volunteer .volunteer-hero .hero-left img {
	width: 100%;
	max-width: 500px;

	transform: translateX(+30%);
}

.page-volunteer .volunteer-hero .hero-right h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

/* Volunteer Intro Section */
body.page-volunteer .volunteer-intro {
	max-width: 1100px;
	margin: 1.5rem auto 3rem;
	padding: 0 1.5rem;
	text-align: center;
}

body.page-volunteer .volunteer-intro .intro-header h2 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 0.75rem;
}

body.page-volunteer .volunteer-intro .intro-text p {
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--muted);
}

/* Volunteer Types Grid Layout */
body.page-volunteer .volunteer-cards{
	max-width: 1100px;
	margin: 2rem auto 3rem;
	padding: 0 1.5rem;

	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 1.5rem;
	justify-items: center;
	align-items: start;
}

body.page-volunteer .volunteer-card{
	text-align: center;
	width: 100%;
	max-width: 220px;
}

/* Special positioning for certain cards */
/* Using grid-column to create a more dynamic layout that forces an arrow-like pattern */
/* Top row */
body.page-volunteer .card-phone-banking   { grid-column: 1 / 3; }
body.page-volunteer .card-text-banking { grid-column: 3 / 5; }
body.page-volunteer .card-door-knocking    { grid-column: 5 / 7; }

/* Second row (shifted inward, same row) */
body.page-volunteer .card-events  { grid-column: 2 / 4; }
body.page-volunteer .card-social  { grid-column: 4 / 6; }

@media (max-width: 800px) {
  body.page-volunteer .volunteer-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  body.page-volunteer .card-phone-banking,
  body.page-volunteer .card-text-banking,
  body.page-volunteer .card-door-knocking,
  body.page-volunteer .card-events,
  body.page-volunteer .card-social {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  body.page-volunteer .volunteer-cards {
    grid-template-columns: 1fr;
  }
}

body.page-volunteer .volunteer-card .volunteer-card-icon{
	font-size: 48px;
	color: var(--primary);
}

body.page-volunteer .volunteer-card .title-container{
	color: var(--primary);
}

/* ===========================
	Form Section
	 =========================== */
body.page-volunteer .volunteer-form-section {
	max-width: 700px;
	margin: 2rem auto 4rem;
	padding: 0 1.5rem;
}

body.page-volunteer .form-header-inner h2 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 0.75rem;
	text-align: center;
}

.page-volunteer .form-subheader-inner p {
	font-size: 1.1rem;
	color: var(--muted);
	margin-top: 0;
	margin-bottom: 3rem;
	text-align: center;
}

body.page-volunteer .volunteer-form-section label {
	color: var(--muted);
}

.page-volunteer .volunteer-form {
	border: 1px solid rgba(0, 128, 55, 0.45);
  border-radius: 16px;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

/* 2-column grid, collapses to 1 on mobile */
.page-volunteer .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-items: start;
}

@media (max-width: 720px) {
  .page-volunteer .form-grid {
    grid-template-columns: 1fr;
  }
}

/* full-width items */
.page-volunteer .span-2 {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .page-volunteer .span-2 {
    grid-column: span 1;
  }
}

/* field wrapper */
.page-volunteer .field {
  display: block;
}

.page-volunteer .field .language-dropdown,
.page-volunteer .field .interest-dropdown {
	width: 100%;
}

.page-volunteer .language-dropdown-btn,
.page-volunteer .interest-dropdown-btn {
	width: 100%;
	margin-top: 0.25rem;
}
.page-volunteer .volunteer-form label {
  font-weight: 600;
  color: var(--muted);
}

/* inputs match the dropdown vibe */
.page-volunteer .volunteer-form input[type="text"],
.page-volunteer .volunteer-form input[type="email"],
.page-volunteer .volunteer-form input[type="tel"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.95);
  font: inherit;
}

.page-volunteer .volunteer-form input:focus {
  outline: none;
  border-color: rgba(0, 128, 55, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 128, 55, 0.12);
}

/* Consent checkbox */
.page-volunteer .consent-label {
	display: flex;
	align-items: center;
	font-weight: 600;
	color: var(--muted);
	margin-top: 0.5rem;
}

.page-volunteer .field input[type="checkbox"] {
	width: auto;
	margin-right: 0.5rem;
	transform: scale(1.1);
	accent-color: var(--primary);
}

/* Center the submit button */
.page-volunteer .actions {
	grid-column: span 2;
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 720px) {
	.page-volunteer .actions {
		grid-column: span 1;
	}
}

/* ===========================
   Dropdowns (Languages + Interests)
   - hides checkbox box
   - highlights selected (yellow)
   =========================== */

.page-volunteer .language-dropdown,
.page-volunteer .interest-dropdown {
  position: relative;
  width: 100%;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.page-volunteer .language-dropdown-btn,
.page-volunteer .interest-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  font: inherit;
}

.page-volunteer .language-dropdown-btn:focus,
.page-volunteer .interest-dropdown-btn:focus {
  outline: none;
  border-color: rgba(0, 128, 55, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 128, 55, 0.12);
}

.page-volunteer .language-dropdown-menu,
.page-volunteer .interest-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;

  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.75rem;

  max-height: 260px;
  overflow: auto;

  display: none; /* toggled by JS */
}

.page-volunteer .language-dropdown-menu.open,
.page-volunteer .interest-dropdown-menu.open {
  display: block;
}

/* Each option becomes a clickable "pill" */
.page-volunteer .dropdown-option {
  display: block;
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 6px;

  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
  color: var(--text);

  transition: transform 0.04s ease,
              background 0.15s ease,
              color 0.15s ease,
              border-color 0.15s ease;
}

.page-volunteer .dropdown-option:hover {
  background: rgba(0,0,0,0.04);
}

.page-volunteer .dropdown-option:active {
  transform: scale(0.995);
}

/* Hide the literal checkbox, but keep it functional */
.page-volunteer .dropdown-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Selected highlight */
.page-volunteer .dropdown-option.is-selected {
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.95),
    rgba(255, 215, 0, 0.75)
  );
  border-color: rgba(0,0,0,0.10);
  color: #111;
  font-weight: 700;
}

/* Divider */
.page-volunteer .dropdown-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0.5rem 0;
}

.page-volunteer .caret {
  opacity: 0.8;
}

/* ===========================
	 Submit Button
	 =========================== */
.page-volunteer .btn-submit {
  position: relative;
  overflow: hidden;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ffe45c);
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.4s ease;
  box-shadow: 0 6px 14px rgba(255, 215, 0, 0.35);
}

.page-volunteer .btn-submit:hover {
  background: linear-gradient(135deg, #ffe45c, #fff07a);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(255, 215, 0, 0.5);
}

.page-volunteer .btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  transition: left 0.8s ease, opacity 0.3s ease;
  pointer-events: none;
}

.page-volunteer .btn-submit:hover::before {
  left: 130%;
  opacity: 1;
}

.page-volunteer .btn-submit:active::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(22);
  }
}

/* ===========================
	 Form Error Messages
	 =========================== */
.page-volunteer .field-error {
  font-size: 0.9rem;
  color: #b00020;
  margin-top: 4px;
  display: none;
}

.page-volunteer .field-error.active {
  display: block;
}

/* Highlight dropdown when invalid */
.page-volunteer .interest-dropdown-btn.invalid {
  border-color: #b00020;
  box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.15);
}

/* ===========================
	 ABOUT IL10 HERO
	 =========================== */
.page-volunteer .about-il10 {
  text-align: center;
	padding-top: 0;
}

/* Full-bleed hero image */
.page-volunteer .hero-image-wrapper {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 360px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}

.page-volunteer .hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 80%;
  display: block;
  filter: grayscale(100%);
}

.page-volunteer .hero-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 102, 51, 0.55);
  pointer-events: none;
  z-index: 1;
}

.page-volunteer .hero-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
	flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}

.page-volunteer .hero-text h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.page-volunteer .btn-learn-more {
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--primary);
	font-weight: 700;
	text-decoration: none;
	box-shadow: var(--shadow);
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.page-volunteer .btn-learn-more:hover {
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
/* ===========================
   VOLUNTEER: MOBILE OVERRIDES
   =========================== */

@media (max-width: 700px) {

  /* Stack volunteer hero grid */
  .page-volunteer .volunteer-hero .hero-container {
    grid-template-columns: 1fr;
  }

  /* Hide the image column — it has a translateX(+30%) offset that breaks on mobile */
  .page-volunteer .volunteer-hero .hero-left {
    display: none;
  }

  /* Tighten hero padding */
  .page-volunteer .volunteer-hero {
    padding: 1.5rem 1rem;
  }

  /* Reduce IL-10 hero image height */
  .page-volunteer .hero-image-wrapper {
    height: 220px;
  }

  /* Tighten form section padding */
  .page-volunteer .volunteer-form-section {
    padding: 0 1rem;
  }

  /* Submit button full width */
  .page-volunteer .actions {
    justify-content: stretch;
  }

  .page-volunteer .btn-submit {
    width: 100%;
  }
}
/* ============================================================
   ACCESSIBILITY: DARK MODE
   ============================================================ */

html.a11y-dark .page-volunteer .volunteer-form {
  background: #242424;
  border-color: rgba(76, 201, 122, 0.35);
}

html.a11y-dark .page-volunteer .volunteer-form label,
html.a11y-dark .page-volunteer .consent-label {
  color: #a0a0a0;
}

html.a11y-dark .page-volunteer .volunteer-form input[type="text"],
html.a11y-dark .page-volunteer .volunteer-form input[type="email"],
html.a11y-dark .page-volunteer .volunteer-form input[type="tel"] {
  background: #2e2e2e;
  color: #e8e8e8;
  border-color: #555;
}

html.a11y-dark .page-volunteer .volunteer-form input:focus {
  border-color: rgba(76, 201, 122, 0.55);
  box-shadow: 0 0 0 4px rgba(76, 201, 122, 0.12);
}

html.a11y-dark .page-volunteer .language-dropdown-btn,
html.a11y-dark .page-volunteer .interest-dropdown-btn {
  background: rgba(40, 40, 40, 0.95);
  border-color: #555;
  color: #e8e8e8;
}

html.a11y-dark .page-volunteer .language-dropdown-btn:focus,
html.a11y-dark .page-volunteer .interest-dropdown-btn:focus {
  border-color: rgba(76, 201, 122, 0.55);
  box-shadow: 0 0 0 4px rgba(76, 201, 122, 0.12);
}

html.a11y-dark .page-volunteer .language-dropdown-menu,
html.a11y-dark .page-volunteer .interest-dropdown-menu {
  background: rgba(28, 28, 28, 0.99);
  border-color: #555;
}

html.a11y-dark .page-volunteer .dropdown-option {
  background: rgba(40, 40, 40, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e8e8e8;
}

html.a11y-dark .page-volunteer .dropdown-option:hover {
  background: rgba(55, 55, 55, 0.95);
}

html.a11y-dark .page-volunteer .dropdown-option.is-selected {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.92), rgba(255, 215, 0, 0.72));
  color: #111;
  border-color: rgba(0, 0, 0, 0.15);
}

html.a11y-dark .page-volunteer .field-error {
  color: #ff6b7a;
}

html.a11y-dark .page-volunteer .interest-dropdown-btn.invalid {
  border-color: #ff6b7a;
  box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.2);
}

/* ============================================================
   ACCESSIBILITY: COMFORT MODE
   ============================================================ */

html.a11y-comfort .page-volunteer .volunteer-form {
  background: rgba(253, 249, 243, 0.97);
  border-color: rgba(180, 158, 130, 0.45);
}

html.a11y-comfort .page-volunteer .volunteer-form input[type="text"],
html.a11y-comfort .page-volunteer .volunteer-form input[type="email"],
html.a11y-comfort .page-volunteer .volunteer-form input[type="tel"] {
  background: #fdf9f3;
  border-color: rgba(0, 0, 0, 0.14);
  color: #3d3530;
}

html.a11y-comfort .page-volunteer .language-dropdown-btn,
html.a11y-comfort .page-volunteer .interest-dropdown-btn {
  background: rgba(253, 249, 243, 0.97);
  color: #3d3530;
}

html.a11y-comfort .page-volunteer .language-dropdown-menu,
html.a11y-comfort .page-volunteer .interest-dropdown-menu {
  background: rgba(253, 249, 243, 0.99);
}

html.a11y-comfort .page-volunteer .dropdown-option {
  background: rgba(253, 249, 243, 0.95);
  color: #3d3530;
}

/* ============================================================
   ACCESSIBILITY: HIGH CONTRAST
   ============================================================ */

html.a11y-highcontrast .page-volunteer .volunteer-form {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
}

html.a11y-highcontrast .page-volunteer .volunteer-form label,
html.a11y-highcontrast .page-volunteer .consent-label {
  color: #000000;
}

html.a11y-highcontrast .page-volunteer .volunteer-form input[type="text"],
html.a11y-highcontrast .page-volunteer .volunteer-form input[type="email"],
html.a11y-highcontrast .page-volunteer .volunteer-form input[type="tel"] {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
}

html.a11y-highcontrast .page-volunteer .volunteer-form input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}

html.a11y-highcontrast .page-volunteer .language-dropdown-btn,
html.a11y-highcontrast .page-volunteer .interest-dropdown-btn {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: none;
}

html.a11y-highcontrast .page-volunteer .language-dropdown-btn:focus,
html.a11y-highcontrast .page-volunteer .interest-dropdown-btn:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
}

html.a11y-highcontrast .page-volunteer .language-dropdown-menu,
html.a11y-highcontrast .page-volunteer .interest-dropdown-menu {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
}

html.a11y-highcontrast .page-volunteer .dropdown-option {
  background: #ffffff;
  color: #000000;
  border: 1px solid #666666;
}

html.a11y-highcontrast .page-volunteer .dropdown-option.is-selected {
  background: #FFD700;
  color: #000000;
  border: 2px solid #000000;
  font-weight: 700;
}

html.a11y-highcontrast .page-volunteer .btn-submit {
  background: #FFD700;
  border: 2px solid #000000;
  color: #000000;
  box-shadow: none;
}

html.a11y-highcontrast .page-volunteer .btn-submit:hover {
  background: #FFE44A;
  box-shadow: none;
}

html.a11y-highcontrast .page-volunteer .field-error {
  font-weight: 700;
}

html.a11y-highcontrast .page-volunteer .interest-dropdown-btn.invalid {
  border-color: #b00020;
  box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.25);
}