/**
 * Volunteer Registration Styles
 */

/* Variables */
:root {
  --volunteer-primary: #1B9C85;
  --volunteer-primary-hover: #178E79;
  --volunteer-dark: #0F172A;
  --volunteer-text: #454F5E;
  --volunteer-border: #D4F3D7;
  --volunteer-bg-light: #EDF6EE;
  --volunteer-white: #FFFFFF;
  --volunteer-error: #EF4444;
  --volunteer-warning: #F59E0B;
  --volunteer-success: #10B981;
}

/* Container */
.volunteer-registration {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Header */
.volunteer-header {
  text-align: center;
  background: var(--volunteer-white);
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.volunteer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--volunteer-bg-light);
  border-radius: 50%;
  margin-bottom: 20px;
}

.volunteer-icon svg {
  color: var(--volunteer-primary);
}

.volunteer-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--volunteer-dark);
  margin: 0 0 12px 0;
}

.volunteer-header p {
  font-size: 16px;
  color: var(--volunteer-text);
  margin: 0;
}

/* Form Sections */
.volunteer-section {
  background: var(--volunteer-white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.volunteer-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--volunteer-dark);
  margin: 0 0 8px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--volunteer-border);
}

.section-description {
  font-size: 14px;
  color: var(--volunteer-text);
  margin: 0 0 20px 0;
}

/* Form Elements */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--volunteer-dark);
  margin-bottom: 8px;
}

.required {
  color: var(--volunteer-error);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--volunteer-border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  color: var(--volunteer-dark);
  background: var(--volunteer-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--volunteer-primary);
  box-shadow: 0 0 0 4px rgba(27, 156, 133, 0.1);
}

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

/* Areas of Interest Grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
}

.area-card {
  display: block;
  cursor: pointer;
}

.area-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.area-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--volunteer-bg-light);
  border: 2px solid var(--volunteer-border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.area-card input:checked + .area-card-content {
  background: var(--volunteer-primary);
  border-color: var(--volunteer-primary);
}

.area-card input:checked + .area-card-content .area-label {
  color: var(--volunteer-white);
}

.area-card input:checked + .area-card-content .area-icon::before {
  color: var(--volunteer-white);
}

.area-card:hover .area-card-content {
  border-color: var(--volunteer-primary);
}

.area-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(27, 156, 133, 0.15);
  border-radius: 8px;
  font-size: 20px;
}

.area-card input:checked + .area-card-content .area-icon {
  background: rgba(255, 255, 255, 0.2);
}

.area-icon::before {
  font-family: "Font Awesome 5 Free", sans-serif;
  font-weight: 900;
  color: var(--volunteer-primary);
}

/* Icon mapping using Unicode symbols */
.area-icon[data-icon="calendar"]::before { content: "📅"; }
.area-icon[data-icon="book"]::before { content: "📚"; }
.area-icon[data-icon="users"]::before { content: "👥"; }
.area-icon[data-icon="heart"]::before { content: "❤️"; }
.area-icon[data-icon="file-text"]::before { content: "📄"; }
.area-icon[data-icon="tool"]::before { content: "🔧"; }
.area-icon[data-icon="dollar-sign"]::before { content: "💰"; }
.area-icon[data-icon="megaphone"]::before { content: "📢"; }

.area-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--volunteer-dark);
  transition: color 0.3s ease;
}

/* Availability Checkboxes */
.availability-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.checkbox-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--volunteer-primary);
  border-radius: 6px;
  background: var(--volunteer-white);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-row input:checked + .checkbox-custom {
  background: var(--volunteer-primary);
}

.checkbox-row input:checked + .checkbox-custom::after {
  content: "✓";
  color: var(--volunteer-white);
  font-size: 14px;
  font-weight: bold;
}

.checkbox-label {
  font-size: 15px;
  color: var(--volunteer-dark);
}

/* Submit Section */
.volunteer-submit {
  text-align: center;
  padding: 30px 0;
}

.button--large {
  padding: 18px 48px;
  font-size: 18px;
}

.button--primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--volunteer-primary) 0%, var(--volunteer-primary-hover) 100%);
  color: var(--volunteer-white);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button--primary:hover {
  background: var(--volunteer-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 156, 133, 0.3);
}

.button--secondary {
  display: inline-block;
  background: var(--volunteer-white);
  color: var(--volunteer-primary);
  border: 2px solid var(--volunteer-primary);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button--secondary:hover {
  background: var(--volunteer-bg-light);
}

/* Already Registered */
.volunteer-already-registered {
  text-align: center;
  background: var(--volunteer-white);
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.volunteer-already-registered h2 {
  font-size: 28px;
  color: var(--volunteer-success);
  margin: 20px 0 10px 0;
}

.volunteer-already-registered > p {
  font-size: 16px;
  color: var(--volunteer-text);
  margin: 0 0 20px 0;
}

.volunteer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--volunteer-bg-light);
  padding: 12px 24px;
  border-radius: 30px;
  margin: 20px 0;
}

.status-label {
  font-size: 14px;
  color: var(--volunteer-text);
}

.status-value {
  font-size: 14px;
  font-weight: 600;
}

.status-active .status-value {
  color: var(--volunteer-success);
}

.status-pending .status-value {
  color: var(--volunteer-warning);
}

.volunteer-status-message {
  font-size: 14px;
  color: var(--volunteer-text);
  margin: 0 0 30px 0;
  line-height: 1.6;
}

/* Success Page */
.volunteer-success {
  max-width: 600px;
  margin: 80px auto;
  padding: 60px 40px;
  text-align: center;
  background: var(--volunteer-white);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.volunteer-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: var(--volunteer-bg-light);
  border-radius: 50%;
  margin-bottom: 30px;
}

.volunteer-success-icon svg {
  color: var(--volunteer-success);
}

.volunteer-success h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--volunteer-success);
  margin: 0 0 20px 0;
}

.success-message {
  font-size: 18px;
  color: var(--volunteer-dark);
  margin: 0 0 16px 0;
}

.success-details {
  font-size: 15px;
  color: var(--volunteer-text);
  line-height: 1.6;
  margin: 0 0 40px 0;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.success-actions .button {
  padding: 14px 32px;
}

/* Responsive */
@media (max-width: 768px) {
  .volunteer-registration {
    margin: 20px auto;
    padding: 0 16px;
  }

  .volunteer-header {
    padding: 30px 20px;
  }

  .volunteer-header h1 {
    font-size: 26px;
  }

  .volunteer-section {
    padding: 24px 20px;
  }

  .volunteer-success {
    margin: 40px auto;
    padding: 40px 24px;
  }

  .volunteer-success h1 {
    font-size: 28px;
  }

  .success-actions {
    flex-direction: column;
    align-items: center;
  }

  .success-actions .button {
    width: 100%;
    max-width: 280px;
  }
}
