.btn,
.comment-form .form-submit input[type="submit"],
.contact-form-submit button,
.wpcf7-form .wpcf7-submit {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 250ms ease-in-out ease-in-out, color 250ms ease-in-out ease-in-out, box-shadow 250ms ease-in-out ease-in-out, transform 250ms ease-in-out ease-in-out;
  cursor: pointer;
  text-decoration: none;
  width: 44px;
  height: 44px;
  padding: 0;
}
.btn:disabled,
.comment-form .form-submit input[type="submit"]:disabled,
.contact-form-submit button:disabled,
.wpcf7-form .wpcf7-submit:disabled {
  cursor: not-allowed;
}
@media (min-width: 768px) {
  .btn,
  .comment-form .form-submit input[type="submit"],
  .contact-form-submit button,
  .wpcf7-form .wpcf7-submit {
    width: auto;
    height: auto;
    padding: 12px 16px;
  }
}
.btn:hover:not(:disabled),
.comment-form .form-submit input[type="submit"]:hover:not(:disabled),
.contact-form-submit button:hover:not(:disabled),
.wpcf7-form .wpcf7-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.btn:active:not(:disabled),
.comment-form .form-submit input[type="submit"]:active:not(:disabled),
.contact-form-submit button:active:not(:disabled),
.wpcf7-form .wpcf7-submit:active:not(:disabled) {
  transform: translateY(0);
}
.btn:focus-visible,
.comment-form .form-submit input[type="submit"]:focus-visible,
.contact-form-submit button:focus-visible,
.wpcf7-form .wpcf7-submit:focus-visible {
  outline: 2px solid #8b0e0e;
  outline-offset: 2px;
}
.btn:disabled,
.comment-form .form-submit input[type="submit"]:disabled,
.contact-form-submit button:disabled,
.wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #8b0e0e;
  color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
  background-color: #b41414;
}
.btn-primary:active:not(:disabled) {
  background-color: #6b0a0a;
}

.btn-secondary {
  background-color: #d4af37;
  color: #222222;
}
.btn-secondary:hover:not(:disabled) {
  background-color: #e5c158;
}
.btn-secondary:active:not(:disabled) {
  background-color: #a68a1f;
}

.btn-outline {
  background-color: transparent;
  color: #8b0e0e;
  border: 2px solid #8b0e0e;
}
.btn-outline:hover:not(:disabled) {
  background-color: #8b0e0e;
  color: #ffffff;
}
.btn-outline:active:not(:disabled) {
  background-color: #6b0a0a;
  border-color: #6b0a0a;
}

.btn-ghost {
  background-color: transparent;
  color: #222222;
}
.btn-ghost:hover:not(:disabled) {
  background-color: #f8f8f8;
}

.btn-success {
  background-color: #27ae60;
  color: #ffffff;
}
.btn-success:hover:not(:disabled) {
  background-color: #1e8449;
}

.btn-danger {
  background-color: #e74c3c;
  color: #ffffff;
}
.btn-danger:hover:not(:disabled) {
  background-color: #d62c1a;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 14px;
}
@media (min-width: 768px) {
  .btn-sm {
    padding: 8px 12px;
  }
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}
@media (min-width: 768px) {
  .btn-lg {
    padding: 16px 32px;
  }
}

.btn-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .btn-group {
    gap: 12px;
  }
}
.btn-group .btn {
  flex: 0 1 auto;
}
.btn-group .btn.btn-block {
  flex: 1 1 100%;
}

.btn-block {
  width: 100%;
}

.btn-fab {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 100;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .btn-fab {
    bottom: 32px;
    right: 32px;
  }
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
}
.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn.loading {
  position: relative;
  color: transparent;
}
.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 9999px;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
