/* ============================================================
   KnowYourGujarat — Volunteer Page Stylesheet (volunteer.css)
   Design Language: Minimal, Editorial, Civic, Trustworthy, Calm
   Color System: Deep Navy (#0B2854), Pale Blue (#F4F8FD),
                 Soft Blue (#B9D0F0), Saffron Orange (#F47A20)
   Full Resolution: Desktop Fluid (up to 1360px) & Mobile-First
   ============================================================ */

/* ── Typography & Base Tokens ── */
:root {
  --vol-navy: #0B2854;
  --vol-navy-dark: #071D3E;
  --vol-navy-hover: #12376E;
  --vol-pale-blue: #F4F8FD;
  --vol-pale-blue-card: #F8FAFD;
  --vol-border: #E1ECF8;
  --vol-border-light: #EDF3FA;
  --vol-linework: #B9D0F0;
  --vol-linework-soft: #D5E4F7;
  --vol-text-primary: #0A1C3E;
  --vol-text-secondary: #4A6282;
  --vol-text-muted: #6F89AD;
  --vol-orange: #F47A20;
  --vol-green: #1FA463;
  --vol-font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --vol-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --vol-font-script: 'Caveat', 'Playfair Display', cursive, serif;
  --vol-max-w: 1360px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body.volunteer-page-body {
  background-color: #FFFFFF;
  color: var(--vol-text-primary);
  font-family: var(--vol-font-sans);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* ── Fluid Page Container ── */
.vol-container {
  width: 100%;
  max-width: var(--vol-max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 64px);
}

/* ── Accent Dot ── */
.vol-dot {
  color: var(--vol-orange);
  font-style: normal;
  display: inline-block;
}

/* ── Buttons ── */
.vol-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--vol-navy);
  color: #FFFFFF !important;
  font-family: var(--vol-font-sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 6px;
  border: 1px solid var(--vol-navy);
  transition: all 220ms ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(11, 40, 84, 0.08);
  min-height: 48px;
  white-space: nowrap;
}

.vol-btn-primary:hover {
  background-color: var(--vol-navy-hover);
  border-color: var(--vol-navy-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11, 40, 84, 0.15);
}

.vol-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #FFFFFF;
  color: var(--vol-navy) !important;
  font-family: var(--vol-font-sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 6px;
  border: 1px solid #D4E2F4;
  transition: all 220ms ease;
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
}

.vol-btn-secondary:hover {
  background-color: #F8FAFD;
  border-color: #BACEE6;
  transform: translateY(-1px);
}

/* ── Section Title & Eyebrow ── */
.vol-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vol-text-muted);
  margin-bottom: 16px;
}

.vol-eyebrow-line {
  display: inline-block;
  width: 44px;
  height: 1px;
  background-color: var(--vol-linework);
}

.vol-section-title {
  font-family: var(--vol-font-serif);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--vol-navy-dark);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.vol-section-subtitle {
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  color: var(--vol-text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   1. HERO SECTION (EXPANSIVE DESKTOP & FLUID MOBILE)
   ══════════════════════════════════════════════════════════════ */
.vol-hero {
  position: relative;
  padding: clamp(48px, 7vw, 90px) 0 clamp(40px, 6vw, 75px);
  background-color: #FFFFFF;
  width: 100%;
}

.vol-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  width: 100%;
}

.vol-hero__content {
  width: 100%;
}

.vol-hero__heading {
  font-family: var(--vol-font-serif);
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: 1.02;
  font-weight: 600;
  color: var(--vol-navy-dark);
  margin: 0 0 clamp(16px, 2.5vw, 24px) 0;
  letter-spacing: -0.025em;
}

.vol-hero__description {
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.65;
  color: var(--vol-text-secondary);
  margin: 0 0 clamp(24px, 3.5vw, 36px) 0;
  max-width: 540px;
}

.vol-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.vol-hero__subnote {
  font-size: 13.5px;
  color: var(--vol-text-muted);
  margin: 0;
  font-weight: 400;
}

/* ── Hero Art (Right Column) ── */
.vol-hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 420px;
}

.vol-hero__top-tag {
  position: absolute;
  top: 0;
  right: 8px;
  text-align: right;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--vol-text-muted);
}

.vol-hero__top-tag-line {
  display: block;
  width: 32px;
  height: 1px;
  background-color: var(--vol-linework);
  margin: 6px 0 0 auto;
}

/* Angled script lettering */
.vol-hero__script {
  position: absolute;
  top: 75px;
  right: 0;
  font-family: var(--vol-font-script);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  color: var(--vol-text-muted);
  transform: rotate(-10deg);
  text-align: left;
  user-select: none;
  pointer-events: none;
}

.vol-hero__script-line {
  display: block;
  width: 85px;
  height: 1px;
  background-color: var(--vol-linework);
  margin-top: 4px;
}

.vol-hero__illustration {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin-top: 24px;
}

/* ══════════════════════════════════════════════════════════════
   2. WHY VOLUNTEER SECTION
   ══════════════════════════════════════════════════════════════ */
.vol-why-section {
  padding: clamp(32px, 4.5vw, 56px) 0;
  width: 100%;
}

.vol-why-panel {
  background-color: var(--vol-pale-blue);
  border: 1px solid var(--vol-border);
  border-radius: clamp(14px, 2vw, 20px);
  padding: clamp(36px, 4.5vw, 56px) clamp(24px, 4vw, 56px);
  width: 100%;
}

.vol-why-panel__header {
  margin-bottom: clamp(28px, 3.5vw, 42px);
}

.vol-why-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.vol-why-col {
  padding: 0 clamp(16px, 2vw, 28px);
  position: relative;
  text-align: left;
}

.vol-why-col:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 0;
  bottom: 10px;
  width: 1px;
  background-color: var(--vol-linework);
  opacity: 0.6;
}

.vol-why-col:first-child {
  padding-left: 0;
}

.vol-why-col:last-child {
  padding-right: 0;
}

.vol-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #D9E6F5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vol-navy);
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(11, 40, 84, 0.05);
}

.vol-why-col__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--vol-navy-dark);
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.vol-why-col__desc {
  font-size: 14.5px;
  color: var(--vol-text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════
   3. WAYS YOU CAN HELP SECTION
   ══════════════════════════════════════════════════════════════ */
.vol-roles-section {
  padding: clamp(40px, 5vw, 70px) 0;
  width: 100%;
}

.vol-roles-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
}

.vol-roles-header .vol-section-subtitle {
  font-size: 15px;
  color: var(--vol-text-muted);
  text-align: right;
}

.vol-roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  width: 100%;
}

.vol-role-card {
  background-color: #FFFFFF;
  border: 1px solid var(--vol-border);
  border-radius: 14px;
  padding: clamp(24px, 2.5vw, 32px) clamp(20px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  transition: all 220ms ease;
  position: relative;
}

.vol-role-card:hover {
  border-color: #B5CCE8;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 40, 84, 0.06);
}

.vol-role-card .vol-icon-circle {
  margin-bottom: 20px;
  transition: transform 220ms ease;
}

.vol-role-card:hover .vol-icon-circle {
  transform: translateY(-2px);
}

.vol-role-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--vol-navy-dark);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.vol-role-card__desc {
  font-size: 14px;
  color: var(--vol-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   4. HOW IT WORKS SECTION
   ══════════════════════════════════════════════════════════════ */
.vol-steps-section {
  padding: clamp(40px, 5vw, 70px) 0;
  width: 100%;
}

.vol-steps-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.vol-steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  position: relative;
  width: 100%;
}

/* Connecting track line across steps on desktop */
.vol-steps-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 12%;
  right: 12%;
  height: 1px;
  background-color: var(--vol-linework);
  z-index: 1;
}

.vol-step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vol-step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 18px;
  background-color: #FFFFFF;
  border: 1px solid var(--vol-navy);
  color: var(--vol-navy);
  transition: all 220ms ease;
}

.vol-step-item:first-child .vol-step-badge {
  background-color: var(--vol-navy);
  color: #FFFFFF;
}

.vol-step-item__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--vol-navy-dark);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.vol-step-item__desc {
  font-size: 14px;
  color: var(--vol-text-secondary);
  line-height: 1.5;
  margin: 0;
  max-width: 220px;
}

/* ══════════════════════════════════════════════════════════════
   5. VOLUNTEER SIGNUP SECTION (JOIN AS A VOLUNTEER)
   ══════════════════════════════════════════════════════════════ */
.vol-signup-section {
  padding: clamp(36px, 5vw, 64px) 0;
  width: 100%;
}

.vol-signup-panel {
  background-color: var(--vol-pale-blue);
  border: 1px solid var(--vol-border);
  border-radius: clamp(14px, 2vw, 20px);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4.5vw, 56px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  width: 100%;
}

.vol-signup-info {
  display: flex;
  flex-direction: column;
}

.vol-signup-info .vol-section-title {
  font-size: clamp(32px, 3.8vw, 44px);
  margin-bottom: 8px;
}

.vol-signup-info .vol-section-subtitle {
  font-size: 15px;
  color: var(--vol-text-secondary);
  margin-bottom: clamp(32px, 4vw, 48px);
}

.vol-quote-block {
  position: relative;
  padding-left: 22px;
  border-left: 1.5px solid var(--vol-linework);
  margin-top: 8px;
}

.vol-quote-text {
  font-family: var(--vol-font-serif);
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.45;
  font-style: italic;
  color: var(--vol-text-muted);
  margin: 0 0 16px 0;
}

.vol-quote-line {
  width: 44px;
  height: 1.5px;
  background-color: var(--vol-linework);
}

/* ── Form Styling ── */
.vol-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.vol-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.vol-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.vol-form-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--vol-navy-dark);
}

.vol-form-label .req {
  color: var(--vol-orange);
  margin-left: 2px;
}

.vol-form-input,
.vol-form-select,
.vol-form-textarea {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #D4E2F4;
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--vol-font-sans);
  font-size: 15px;
  color: var(--vol-text-primary);
  outline: none;
  transition: all 180ms ease;
  min-height: 46px;
}

.vol-form-input::placeholder,
.vol-form-textarea::placeholder {
  color: #9DB4D0;
}

.vol-form-input:focus,
.vol-form-select:focus,
.vol-form-textarea:focus {
  border-color: var(--vol-navy);
  box-shadow: 0 0 0 3px rgba(11, 40, 84, 0.08);
}

.vol-form-input.is-invalid,
.vol-form-select.is-invalid,
.vol-form-textarea.is-invalid {
  border-color: #E53E3E;
  background-color: #FFFDFD;
}

.vol-field-error {
  font-size: 12px;
  color: #E53E3E;
  margin-top: 2px;
  display: none;
}

.vol-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%230B2854' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.vol-form-textarea {
  resize: vertical;
  min-height: 96px;
}

.vol-btn-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  margin-top: 6px;
}

.vol-form-privacy {
  font-size: 12.5px;
  color: var(--vol-text-muted);
  text-align: center;
  margin: 6px 0 0 0;
  line-height: 1.5;
}

/* ── Form States (Loading & Success) ── */
.vol-btn-submit.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.vol-btn-submit.is-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: volSpin 600ms linear infinite;
}

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

.vol-success-card {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #FFFFFF;
  border: 1px solid var(--vol-border);
  border-radius: 14px;
  padding: 48px 32px;
  animation: volFadeIn 300ms ease-out forwards;
}

.vol-success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: var(--vol-pale-blue);
  border: 1px solid var(--vol-linework);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vol-navy);
  margin-bottom: 20px;
}

.vol-success-title {
  font-family: var(--vol-font-serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--vol-navy-dark);
  margin: 0 0 10px 0;
}

.vol-success-desc {
  font-size: 15.5px;
  color: var(--vol-text-secondary);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 0 24px 0;
}

@keyframes volFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   6. FINAL CTA SECTION (LET’S BUILD A STRONGER GUJARAT)
   ══════════════════════════════════════════════════════════════ */
.vol-cta-section {
  position: relative;
  padding: clamp(80px, 9vw, 130px) 0;
  text-align: center;
  background-color: #FFFFFF;
  border-top: 1px solid var(--vol-border);
  overflow: hidden;
  width: 100%;
}

.vol-cta-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.vol-cta-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vol-text-muted);
  margin-bottom: 14px;
}

.vol-cta-heading {
  font-family: var(--vol-font-serif);
  font-size: clamp(36px, 4.8vw, 56px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--vol-navy-dark);
  margin: 0 0 28px 0;
  letter-spacing: -0.02em;
}

.vol-cta-script {
  position: absolute;
  top: -24px;
  right: -110px;
  font-family: var(--vol-font-script);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  color: var(--vol-text-muted);
  transform: rotate(-10deg);
  text-align: left;
  user-select: none;
  pointer-events: none;
}

.vol-cta-script-line {
  display: block;
  width: 75px;
  height: 1px;
  background-color: var(--vol-linework);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════════════════
   7. RESPONSIVE BREAKPOINTS (MOBILE & TABLET EXCELLENCE)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .vol-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .vol-hero__content {
    max-width: 100%;
  }
  .vol-hero__visual {
    min-height: auto;
  }
  .vol-hero__illustration {
    max-width: 420px;
  }
  .vol-why-panel__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }
  .vol-why-col:nth-child(2)::after {
    display: none;
  }
  .vol-why-col:nth-child(3) {
    padding-left: 0;
  }
  .vol-roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vol-signup-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .vol-cta-script {
    display: none;
  }
}

@media (max-width: 768px) {
  .vol-container {
    padding: 0 18px;
  }
  .vol-hero {
    padding: 36px 0 44px;
  }
  .vol-hero__grid {
    gap: 28px;
  }
  .vol-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .vol-hero__actions .vol-btn-primary,
  .vol-hero__actions .vol-btn-secondary {
    width: 100%;
  }
  .vol-hero__top-tag {
    position: static;
    text-align: left;
    margin-bottom: 8px;
  }
  .vol-hero__top-tag-line {
    margin: 4px 0 0 0;
  }
  .vol-hero__script {
    display: none;
  }
  .vol-hero__illustration {
    max-width: 290px;
    margin: 16px auto 0;
  }
  .vol-why-panel {
    padding: 32px 18px;
  }
  .vol-why-panel__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .vol-why-col {
    padding: 0;
  }
  .vol-why-col::after {
    display: none !important;
  }
  .vol-roles-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .vol-roles-header .vol-section-subtitle {
    text-align: left;
  }
  .vol-roles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Vertical timeline on mobile */
  .vol-steps-timeline {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .vol-steps-timeline::before {
    top: 18px;
    bottom: 18px;
    left: 17px;
    right: auto;
    width: 1px;
    height: calc(100% - 36px);
  }
  .vol-step-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
  }
  .vol-step-badge {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .vol-step-item__desc {
    max-width: 100%;
  }

  .vol-signup-panel {
    padding: 32px 18px;
  }
  .vol-form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .vol-form-input,
  .vol-form-select,
  .vol-form-textarea {
    font-size: 16px; /* Prevents auto-zoom on mobile Safari */
  }

  .vol-cta-section {
    padding: 60px 0;
  }
  .vol-cta-content .vol-btn-primary {
    width: 100%;
    max-width: 320px;
  }
}

/* Small phones (< 380px) */
@media (max-width: 380px) {
  .vol-container {
    padding: 0 14px;
  }
  .vol-why-panel,
  .vol-signup-panel {
    padding: 24px 14px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
