/* Modern Leave a Reply (Comment Form) styles aligned with blog theme */

/* Wrapper */
#respond {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 32px;
  margin-top: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Title */
#reply-title {
  color: #1a1a1a;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
}

#cancel-comment-reply-link {
  color: #58AB35;
  font-size: 0.9rem;
}

/* Help text */
#respond p.comment-notes,
#respond .logged-in-as {
  color: #666;
  margin-bottom: 16px;
}

/* Field groups */
#respond .comment-form-author,
#respond .comment-form-email,
#respond .comment-form-url {
  display: inline-block;
  width: 32%;
  margin-right: 2%;
  vertical-align: top;
}
#respond .comment-form-url { margin-right: 0; }

#respond label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Ensure inputs fit within columns */
#respond .comment-form-author input,
#respond .comment-form-email input,
#respond .comment-form-url input {
  box-sizing: border-box;
  height: 40px;
}

/* Inputs */
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
  width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #333;
}

#respond textarea {
  min-height: 140px;
  resize: vertical;
}

#respond input[type="text"]:focus,
#respond input[type="email"]:focus,
#respond input[type="url"]:focus,
#respond textarea:focus {
  outline: none;
  border-color: #58AB35;
  box-shadow: 0 0 0 3px rgba(88, 171, 53, 0.1);
}

/* Cookies consent */
#respond .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

#respond #wp-comment-cookies-consent {
  width: auto;
  margin: 0 !important; /* override legacy margins */
  flex: 0 0 auto;
}

/* Align checkbox and text label neatly and override legacy styles */
#respond .comment-form-cookies-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 !important;
  vertical-align: middle;
}

#respond .comment-form-cookies-consent label[for="wp-comment-cookies-consent"] {
  margin: 0 !important;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
  margin-top: 2px!important;
}

/* Textarea row */
#respond .comment-form-comment {
  width: 100%;
  clear: both;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Submit */
#respond .form-submit { margin-top: 16px; }

#respond .form-submit input[type="submit"] {
  background: linear-gradient(135deg, #58AB35 0%, #4a8f2d 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#respond .form-submit input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 171, 53, 0.3);
}

#respond .form-submit input[type="submit"]:active {
  transform: translateY(0);
}

/* Accessibility improvements */
#respond input:focus-visible,
#respond textarea:focus-visible {
  outline: none;
}

/* Small screens */
@media (max-width: 768px) {
  #respond { padding: 24px; margin-top: 24px; }
  #respond .comment-form-author,
  #respond .comment-form-email,
  #respond .comment-form-url {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 16px;
  }
  #respond .form-submit { text-align: center; }
}


/* Show-all collapsed behavior for comment list */
.csh-comments.csh-comments--collapsed .csh-comment-list > li:nth-child(n+6) {
  display: none;
}

/* Show-all button wrapper and button */
.csh-comments__show-all-wrap {
  text-align: center;
}

.csh-comments__show-all {
  display: inline-block;
  margin: 16px auto 0;
  background: linear-gradient(135deg, #58AB35 0%, #4a8f2d 100%);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.csh-comments__show-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 171, 53, 0.3);
}

.csh-comments__show-all:active {
  transform: translateY(0);
}

