/**
 * Volunteer Page Styles
 * Based on mockup with site color theme
 * @package AWE_EV_Classic
 */

/* ============================================
   VOLUNTEER PAGE - BODY ONLY
   ============================================
   Mockup reference: 20. Volunteer with us page mockup.html
   Color theme: Site colors (warm palette)

   Structure:
   1. Page Header (gradient background, eyebrow, pills)
   2. Volunteer Layout (why volunteer + steps)
   3. Opportunities Grid
   4. Form Band
   ============================================ */

/* ----------------------------------------
   1. Page Header (Volunteer-specific)
   ---------------------------------------- */

.page-template-page-get-involved .page-header {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-template-page-get-involved .page-header__eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.page-template-page-get-involved .page-header__title {
  margin-bottom: 0.4rem;
}

.page-template-page-get-involved .page-header__intro {
  max-width: 640px;
  font-size: 0.98rem;
}

.page-template-page-get-involved .page-header__intro p {
  margin-bottom: 0;
}

.page-template-page-get-involved .page-header__tags {
  margin-top: 1rem;
}

/* Pills/tags */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.pill {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-bg-alt);
  color: var(--color-dark);
  border: 1px solid var(--color-border);
}

/* ----------------------------------------
   2. Volunteer Layout Section
   ---------------------------------------- */

.volunteer-layout {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.volunteer-why {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.volunteer-why h2 {
  font-size: 1.5rem;
}

.volunteer-why ul {
  margin-top: 0.2rem;
}

/* ----------------------------------------
   3. Volunteer Steps Card
   ---------------------------------------- */

.volunteer-steps-card {
  position: relative;
  overflow: hidden;
}

.volunteer-steps-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, transparent 60%);
  pointer-events: none;
}

.volunteer-steps-card .card__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}

.volunteer-steps-card .card__title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.volunteer-steps-card .card__body {
  font-size: 0.93rem;
  margin-top: 0.1rem;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  position: relative;
}

.steps-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.93rem;
  margin-bottom: 0;
}

.steps-list span.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.steps-footer {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--color-muted);
}

.steps-footer a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ----------------------------------------
   4. Volunteer Opportunities Grid
   ---------------------------------------- */

.volunteer-opportunities {
  display: block;
  grid-template-columns: none;
  gap: 0;
  margin: 0;
  padding-bottom: 3.5rem;
}

.volunteer-opportunities .grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

/* Card structure - exact mockup specifications */
.volunteer-opportunities .card {
  padding: 1.9rem 1.9rem 1.7rem;
  border-radius: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.volunteer-opportunities .card:hover {
  transform: translateY(-3px);
}

/* Enhanced card styles for volunteer opportunities */
.volunteer-opportunities .card__eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}

.volunteer-opportunities .card__title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.volunteer-opportunities .card__body {
  font-size: 0.93rem;
  margin-top: 0.1rem;
}

.opportunity-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

.opportunity-meta span + span::before {
  content: " \2022 ";
  padding: 0 0.25rem;
}

.volunteer-opportunities .card__footer {
  margin-top: 0.6rem;
  font-size: 0.9rem;
}

.volunteer-opportunities .badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.volunteer-opportunities .badge--muted {
  background-color: rgba(84, 62, 52, 0.05);
  color: var(--color-muted);
}

/* ----------------------------------------
   5. Volunteer Form Band
   ---------------------------------------- */

.volunteer-form-band {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}

.volunteer-form-inner {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  padding: 2.2rem 2rem 2rem;
}

.volunteer-form-header {
  max-width: 640px;
  margin-bottom: 1.7rem;
}

.volunteer-form-header h2 {
  margin-bottom: 0.5rem;
}

.volunteer-form-header p {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* ----------------------------------------
   6. Form Grid & Fields
   ---------------------------------------- */

.form-grid {
  display: grid;
  gap: 1.2rem;
}

.form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.92rem;
}

.form-field label {
  font-weight: 600;
  color: var(--color-dark);
}

.form-field span.required {
  color: var(--color-primary);
  margin-left: 0.15rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 0.8rem;
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.85rem;
  font: inherit;
  resize: vertical;
  min-height: 44px;
  background-color: var(--color-white);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast);
}

.form-field textarea {
  min-height: 120px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary-light);
}

.form-field input[type="checkbox"],
.form-field input[type="radio"] {
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--color-primary);
}

.form-field input[type="checkbox"]:focus,
.form-field input[type="radio"]:focus {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
  box-shadow: none;
}

.form-field--choices .wpcf7-form-control.wpcf7-checkbox,
.form-field--choices .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.9rem;
}

.form-field--choices .wpcf7-list-item,
.form-field--consent .wpcf7-list-item {
  margin: 0;
}

.form-field--choices .wpcf7-list-item label,
.form-field--consent .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-weight: 400;
  line-height: 1.4;
}

.form-field--choices .wpcf7-list-item-label,
.form-field--consent .wpcf7-list-item-label {
  color: var(--color-dark);
}

.form-field--consent {
  padding-top: 0.2rem;
}

.form-helper {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.3rem;
}

.form-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
}

/* ----------------------------------------
   7. Form Messages
   ---------------------------------------- */

.volunteer-form-notice,
.form-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.volunteer-form-notice {
  background-color: var(--color-bg-alt);
  color: var(--color-muted);
  border: 1px solid var(--color-border);
}

.form-message--success {
  background-color: var(--color-bg-alt);
  color: var(--color-dark);
  border: 1px solid var(--color-success);
}

.form-message--error {
  background-color: var(--color-bg-alt);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

/* ----------------------------------------
   8. Responsive Adjustments
   ---------------------------------------- */

@media (max-width: 960px) {
  .volunteer-layout .grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .volunteer-opportunities .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .form-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-field--choices .wpcf7-form-control.wpcf7-checkbox,
  .form-field--choices .wpcf7-checkbox {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .page-template-page-get-involved .page-header {
    padding: 2rem 0 1.5rem;
  }

  .volunteer-layout {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .volunteer-form-band {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .volunteer-form-inner {
    padding: 1.5rem 1.25rem;
  }

  .volunteer-opportunities .grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Section header - exact mockup specifications for volunteer opportunities */
.volunteer-opportunities .section__header {
  margin-bottom: 2rem;
  max-width: 680px;
}

.volunteer-opportunities .section__title {
  margin-bottom: 0.4rem;
}

.volunteer-opportunities .section__subtitle {
  font-size: 0.97rem;
}
