/* ===== PAGE-SPECIFIC STYLES ===== */

.volunteer-hero {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 10rem 2rem 4rem; /* ← increased top padding to clear the navbar */
  background: linear-gradient(135deg, #2c3e2f 0%, #4a5d4e 60%, #8b9e7d 100%);
  color: white;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.volunteer-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.volunteer-hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.volunteer-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.volunteer-hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.85;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
}

.volunteer-hero .hero-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  display: block;
  animation: floatIcon 3s ease-in-out infinite;
  line-height: 1;
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ===== FORM PAGE WRAPPER ===== */
.volunteer-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ===== AI NOTICE BANNER ===== */
.ai-notice {
  background: linear-gradient(135deg, #f0f4ee, #e8f0e5);
  border: 1px solid rgba(139, 158, 125, 0.35);
  border-left: 4px solid #8b9e7d;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ai-notice-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ai-notice-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a5d4e;
}

.ai-notice-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #2c3e2f;
}

/* ===== WELCOME CARD ===== */
.welcome-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(139, 158, 125, 0.15);
  margin-bottom: 2.5rem;
  text-align: center;
}

.welcome-card h2 {
  font-size: 1.6rem;
  color: #2c3e2f;
  margin-bottom: 1rem;
  font-weight: 700;
}

.welcome-card p {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin-bottom: 1rem;
}

.welcome-card .tagline {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  font-style: italic;
  color: #8b9e7d;
  font-weight: 500;
}

/* ===== FORM CARD ===== */
.form-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(139, 158, 125, 0.15);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #2c3e2f;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.form-label .required {
  color: #8b9e7d;
  margin-left: 3px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid #dde5d9;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #333;
  background: #fafaf8;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #8b9e7d;
  box-shadow: 0 0 0 3px rgba(139, 158, 125, 0.15);
  background: white;
}

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

/* ===== CHECKBOX GROUP ===== */
.checkbox-group {
  display: grid;
  gap: 0.6rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  padding: 0.7rem 1rem;
  border: 1.5px solid #dde5d9;
  border-radius: 10px;
  background: #fafaf8;
  transition: all 0.2s;
  font-size: 0.95rem;
  color: #444;
}

.checkbox-label:hover {
  border-color: #8b9e7d;
  background: #f0f4ee;
}

.checkbox-label input[type="checkbox"] {
  accent-color: #8b9e7d;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.checkbox-label.checked {
  border-color: #8b9e7d;
  background: #f0f4ee;
  color: #2c3e2f;
  font-weight: 500;
}

/* ===== AVAILABILITY GRID ===== */
.availability-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
}

.avail-header {
  font-weight: 600;
  font-size: 0.82rem;
  color: #8b9e7d;
  text-align: center;
  padding: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.avail-day {
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  padding: 0.3rem 0;
}

.avail-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avail-cell input[type="checkbox"] {
  accent-color: #8b9e7d;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ===== RADIO GROUP ===== */
.radio-group {
  display: grid;
  gap: 0.6rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  padding: 0.7rem 1rem;
  border: 1.5px solid #dde5d9;
  border-radius: 10px;
  background: #fafaf8;
  transition: all 0.2s;
  font-size: 0.95rem;
  color: #444;
}

.radio-label:hover {
  border-color: #8b9e7d;
  background: #f0f4ee;
}

.radio-label input[type="radio"] {
  accent-color: #8b9e7d;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ===== ENTHUSIASM SCALE ===== */
.scale-container {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.scale-option {
  flex: 1;
  text-align: center;
}

.scale-option input[type="radio"] {
  display: none;
}

.scale-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.8rem 0.5rem;
  border: 1.5px solid #dde5d9;
  border-radius: 10px;
  background: #fafaf8;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.85rem;
  color: #666;
  height: 100%;
  width: 100%;
}

.scale-btn .scale-num {
  font-size: 1.2rem;
  font-weight: 700;
  color: #8b9e7d;
}

.scale-option input[type="radio"]:checked + .scale-btn {
  background: #8b9e7d;
  border-color: #8b9e7d;
  color: white;
}

.scale-option input[type="radio"]:checked + .scale-btn .scale-num {
  color: white;
}

.scale-btn:hover {
  border-color: #8b9e7d;
  background: #f0f4ee;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #999;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ===== SECTION DIVIDER ===== */
.form-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2c3e2f;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #eee;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-title i {
  color: #8b9e7d;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
  width: 100%;
  padding: 1.1rem;
  background: #8b9e7d;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
  background: #7a8d6c;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 158, 125, 0.4);
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ===== RESULT CARD ===== */
.result-card {
  display: none;
  background: linear-gradient(135deg, #f0f4ee, #e8f0e5);
  border: 1px solid rgba(139, 158, 125, 0.3);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

.result-card.visible {
  display: block;
  animation: fadeSlideIn 0.5s ease;
}

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

.result-card h3 {
  font-size: 1.2rem;
  color: #2c3e2f;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-text {
  font-size: 0.97rem;
  line-height: 1.75;
  color: #444;
  white-space: pre-wrap;
}

.loading-dots span {
  display: inline-block;
  animation: blink 1.4s infinite both;
  font-size: 1.5rem;
  color: #8b9e7d;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

/* ===== BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #8b9e7d;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #2c3e2f;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .availability-grid {
    font-size: 0.82rem;
  }
  .scale-btn {
    padding: 0.6rem 0.3rem;
    font-size: 0.75rem;
  }
  .scale-btn .scale-num {
    font-size: 1rem;
  }
  .form-card {
    padding: 1.8rem 1.2rem;
  }
  .welcome-card {
    padding: 2rem 1.2rem;
  }
}
