.volunteer-registration-form .wpcf7-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.volunteer-registration-form .wpcf7-form h3 {
  text-align: center;
  color: #2c3e50;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 600;
  border-bottom: 3px solid #e74c3c;
  padding-bottom: 15px;
}

/* Form Row Layouts */
.volunteer-registration-form .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.volunteer-registration-form .form-col {
  flex: 1;
  min-width: 250px;
}

.volunteer-registration-form .form-col-full {
  flex: 1 1 100%;
}

/* Labels */
.volunteer-registration-form .wpcf7-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #34495e;
  font-size: 14px;
}

/* Form Controls */
.volunteer-registration-form .wpcf7-form .form-control,
.volunteer-registration-form .wpcf7-form input[type="text"],
.volunteer-registration-form .wpcf7-form input[type="email"],
.volunteer-registration-form .wpcf7-form input[type="tel"],
.volunteer-registration-form .wpcf7-form input[type="date"],
.volunteer-registration-form .wpcf7-form select,
.volunteer-registration-form .wpcf7-form textarea {
  width: 100%;
  padding: 6px 16px;
  border: 2px solid #e0e6ed;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.volunteer-registration-form .wpcf7-form .form-control:focus,
.volunteer-registration-form .wpcf7-form input:focus,
.volunteer-registration-form .wpcf7-form select:focus,
.volunteer-registration-form .wpcf7-form textarea:focus {
  outline: none;
  border-color: orange;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  background-color: #fafbfc;
}

/* Placeholder Styles */
.volunteer-registration-form .wpcf7-form input::placeholder,
.volunteer-registration-form .wpcf7-form textarea::placeholder {
  color: #95a5a6;
  font-style: italic;
}

/* Select Dropdown */
.volunteer-registration-form .wpcf7-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 40px;
}

.volunteer-registration-form .wpcf7-form select:focus {
  background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%233498db' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
}

/* Textarea */
.volunteer-registration-form .wpcf7-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox Styling */
.volunteer-registration-form .wpcf7-form .checkbox-custom {
  display: inline;
}

.volunteer-registration-form .wpcf7-form .wpcf7-list-item {
  margin: 0;
  padding: 0;
}

.volunteer-registration-form .wpcf7-form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 15px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.volunteer-registration-form .wpcf7-form .wpcf7-list-item label:hover {
  background: #e3f2fd;
  border-color: #3498db;
}

.volunteer-registration-form
  .wpcf7-form
  .wpcf7-list-item
  input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  accent-color: #3498db;
  cursor: pointer;
}

/* Certificate Note */
.volunteer-registration-form .certificate-note {
  margin-top: 10px;
  padding: 12px;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 6px;
  color: #856404;
  font-size: 13px;
  font-style: italic;
}

.volunteer-registration-form p.caption {
  font-size: 13px;
  font-style: italic;
}

/* Submit Button */
.volunteer-registration-form .wpcf7-form .submit-btn,
.volunteer-registration-form .wpcf7-form input[type="submit"] {
  background: linear-gradient(135deg, orange, #ffa026);
  color: white;
  padding: 10px 40px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin: 20px auto 0 auto;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-sizing: border-box;
  display: block;
}

.volunteer-registration-form .wpcf7-form .submit-btn:hover,
.volunteer-registration-form .wpcf7-form input[type="submit"]:hover {
  background: linear-gradient(135deg, orange, #ffa026);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.volunteer-registration-form .wpcf7-form .submit-btn:active,
.volunteer-registration-form .wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

/* Required Field Indicator */
.volunteer-registration-form .wpcf7-form label.required::after {
  content: " *";
  color: #e74c3c;
  font-weight: bold;
}

/* .volunteer-registration-form .wpcf7-form label:after {
            content: " *";
            color: #e74c3c;
            font-weight: bold;
        }

        .volunteer-registration-form .wpcf7-form label:not([for*="Occupation"]):not([for*="other-skills"]):not([for*="area-of-interest"]):not([for*="time-commitment"]):not([for*="volunteer-period"]):after {
            content: " *";
            color: #e74c3c;
        } */

/* Contact Form 7 Response Messages */
.volunteer-registration-form .wpcf7-response-output {
  margin: 20px 0 0 0;
  padding: 15px;
  border-radius: 6px;
  font-weight: 500;
}

.volunteer-registration-form .wpcf7-mail-sent-ok {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.volunteer-registration-form .wpcf7-validation-errors,
.volunteer-registration-form .wpcf7-mail-sent-ng {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.volunteer-registration-form .wpcf7-spam-blocked {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
}

/* Validation Error Styling */
.volunteer-registration-form .wpcf7-not-valid {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.volunteer-registration-form .wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .volunteer-registration-form .wpcf7-form {
    padding: 20px 15px;
    margin: 10px;
  }

  .volunteer-registration-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .volunteer-registration-form .form-col {
    min-width: auto;
    margin-bottom: 15px;
  }

  .volunteer-registration-form .wpcf7-form h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .volunteer-registration-form .wpcf7-form .form-control,
  .volunteer-registration-form .wpcf7-form input,
  .volunteer-registration-form .wpcf7-form select,
  .volunteer-registration-form .wpcf7-form textarea {
    /* padding: 10px 14px; */
    margin-top: 0;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  .volunteer-registration-form .wpcf7-form h3 {
    font-size: 20px;
  }

  .volunteer-registration-form .wpcf7-form .submit-btn,
  .volunteer-registration-form .wpcf7-form input[type="submit"] {
    padding: 12px 30px;
    font-size: 14px;
  }
}

/* Loading State */
.volunteer-registration-form .wpcf7-form.submitting .submit-btn,
.volunteer-registration-form .wpcf7-form.submitting input[type="submit"] {
  background: #ffa026;
  cursor: not-allowed;
  transform: none;
}

.volunteer-registration-form .wpcf7-form.submitting .submit-btn:hover,
.volunteer-registration-form .wpcf7-form.submitting input[type="submit"]:hover {
  background: #ffa026;
  transform: none;
  box-shadow: none;
}

/* Accessibility Improvements */
.volunteer-registration-form .wpcf7-form input:focus-visible,
.volunteer-registration-form .wpcf7-form select:focus-visible,
.volunteer-registration-form .wpcf7-form textarea:focus-visible {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .volunteer-registration-form .wpcf7-form {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .volunteer-registration-form .wpcf7-form .submit-btn,
  .volunteer-registration-form .wpcf7-form input[type="submit"] {
    display: none;
  }
}
